Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The first three items can be done using the <a href="http://technet.microsoft.com/en-us/library/dd569080%28v=ws.10%29.aspx" rel="nofollow noreferrer"><code>appHostConfig</code></a> provider, which should be included if you set the <code>IncludeIisSettings</code> and <code>UseIis</code> properties both to <code>true</code>.</p> <p>The last item can be done via the <a href="http://technet.microsoft.com/en-us/library/ee619740%28v=ws.10%29.aspx" rel="nofollow noreferrer"><code>runCommand</code></a> provider either as part of your manifest or via <a href="http://technet.microsoft.com/en-us/library/dd569089%28v=ws.10%29.aspx" rel="nofollow noreferrer"><code>preSync</code> / <code>postSync</code></a>.</p> <p>WPP (the MSBuild stuff on top of MSDeploy) has no support for <code>preSync</code> / <code>postSync</code>, but you can include the <code>runCommand</code> provider explicitly using <code>MsDeploySourceManifest</code>:</p> <pre><code>&lt;!-- Create a WebProjectName.wpp.targets file in the root of your web application (WebProjectName) --&gt; &lt;Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt; &lt;PropertyGroup&gt; &lt;AfterAddContentPathToSourceManifest&gt; $(AfterAddContentPathToSourceManifest); AddPostSyncProviders &lt;/AfterAddContentPathToSourceManifest&gt; &lt;/PropertyGroup&gt; &lt;Target Name="AddPostSyncProviders"&gt; &lt;MsDeploySourceManifest Include="runCommand"&gt; &lt;Path&gt;absolute path to exe on target machine&lt;/Path&gt; &lt;/MsDeploySourceManifest&gt; &lt;/Target&gt; &lt;/Project&gt; </code></pre> <p>FYI - <code>runCommand</code> can only execute absolute paths on the target machine <a href="https://stackoverflow.com/questions/4867758/msdeploy-runcommand-using-relative-path">as per this question</a>. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload