I'm looking for a way to run a WebDeploy call from within my MsBuild target, with the WebDeploy call having nothing to do with the application being built.
I have a commandline msdeploy which looks like this:
msdeploy.exe –verb:sync
-source:contentPath="C:\MyFolderPath"
-dest:contentPath="C:\MyDestinationPath"
This works perfectly. Now I want to plug this into an msbuild file into the AfterBuild target:
<MSDeploy Verb="Sync"
Source="-contentPath:'C:\MyFolderPath'"
Destination="-contentPath:'C:\MyDestinationPath'" />
This gives me ERROR_PROVIDER_NOT_FOUND when I build. I've tried the -contentPath both with and without the -
I can't seem to find the documentation for the MsDeploy task though which isn't helping. Any help much appreciated