Search code examples
visual-studio-2010msdeploywebdeploy

MsDeploySourceManifest - RunCommand: Set options (DontUseCommandExe, waitInterval)


I can't seem to set the runCommand options in my MSDeploySourceManifestTask. Path works fine but the others do not.

  <MsDeploySourceManifest Include="runCommand">
    <waitInterval>5000</waitInterval>
    <Path>dir</Path>
    <dontUseCommandExe>True</dontUseCommandExe>
  </MsDeploySourceManifest>

Whats the deal?


Solution

  • You need to specifically declare the provider settings you want to add in an extra metadata item <AdditionalProviderSettings/> (semi-colon separated). Change your item to this and it'll work fine:

    <MsDeploySourceManifest Include="runCommand">
      <Path>dir</Path>
      <waitInterval>5000</waitInterval>
      <dontUseCommandExe>True</dontUseCommandExe>
      <AdditionalProviderSettings>waitInterval;dontUseCommandExe</AdditionalProviderSettings>
    </MsDeploySourceManifest>