Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to create and deploy MSDeploy package using precompiled ASP.NET Web Application
rem Create package using manifest:
msdeploy -verb:sync -source:manifest="G:\CI_on_DVCS\PackageManifest.xml" -dest:package="g:\CI_on_DVCS\Package.zip"
rem Install package using manifest:
msdeploy -verb:sync -source:package="g:\CI_on_DVCS\Package.zip" -dest:manifest="G:\CI_on_DVCS\PackageInstallationManifest.xml",computerName=AMI,username="UserName",password="Password"
rem Create package using command line:
msdeploy -verb:sync -source:contentPath="g:\CI_on_DVCS\Src\" -dest:package="g:\CI_on_DVCS\Package.zip"
rem Install package using command line:
msdeploy -verb:sync -source:package="g:\CI_on_DVCS\Package.zip" -dest:contentPath="CI_on_DVCS",computerName=AMI,username="UserName",password="Password"
rem NOTE: -source:contentPath - Path to precompiled ASP.NET Web Application.
rem NOTE: -dest:contentPath - Name of the IIS website on the destination host.
rem PackageManifest.xml:
rem <?xml version="1.0" encoding="utf-8"?>
rem <sitemanifest>
rem <contentPath path="g:\Src\" />
rem </sitemanifest>
rem PackageInstallationManifest.xml:
rem <?xml version="1.0" encoding="utf-8"?>
rem <sitemanifest>
rem <contentPath path="CI_on_DVCS" />
rem </sitemanifest>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment