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 (2)

  1. Warren Postma says:

    Interesting. Doesn’t seem to work with authentication. Usually fails with 401 (unauthorized).

  2. Samuel Li says:

    Works like a charm! Thanks!

Skip to main content