WebDeploy using publish settings
In the new version of Web Deploy 3.6 you can now use your publish settings that were created within Visual Studio. So instead of doing this
msdeploy.exe -verb:sync -source:contentPath=d:\web\wwwroot -dest:contentPath=siteName,computername=https://dev/msdeploy.axd?site=siteName,username=myUser,password=myPass,authtype=basic
Can now be simplified to this:
msdeploy.exe -verb:sync -source:contentPath=d:\web\wwwroot -dest:contentPath=siteName,publishsettings=d:\dev.PublishSettings
Happy days!
Comments
- Anonymous
September 29, 2016
Interesting. Doesn't seem to work with authentication. Usually fails with 401 (unauthorized). - Anonymous
February 10, 2017
Works like a charm! Thanks!