Skip to content

Instantly share code, notes, and snippets.

@crunchie84
Last active December 17, 2015 14:49
Show Gist options
  • Save crunchie84/5627572 to your computer and use it in GitHub Desktop.
Save crunchie84/5627572 to your computer and use it in GitHub Desktop.
Because i always forget: syntax to create a deployable (MsDeploy) IIS Website package from a regular static-files directory.
REM just a snippet
msdeploy.exe
-verb:sync
-source:iisApp="%RootPath%mywebproject"
-dest:package="%RootPath%Website.zip"
-declareParamFile:"%RootPath%\parameters.xml"
<?xml version="1.0" encoding="utf-8" ?>
<parameters>
<!--
This file contains (among others) references to web.config fields (xpath)
which will be 'parameterized' on package before deploy. The actual values will then be filled in based on the given deploy environment.
-->
<parameter name="IIS Web Application Name" tags="IisApp">
<parameterEntry kind="ProviderPath" scope="iisApp" match="" tags="IisApp" />
</parameter>
</parameters>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment