Skip to content

Instantly share code, notes, and snippets.

@otakusid
Created June 30, 2013 17:30
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save otakusid/5896066 to your computer and use it in GitHub Desktop.
Save otakusid/5896066 to your computer and use it in GitHub Desktop.
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