MsDeploySourceManifest - RunCommand:设置选项(DontUseCommandExe,waitInterval)

时间:2011-08-01 14:08:14

标签: visual-studio-2010 msdeploy webdeploy

我似乎无法在MSDeploySourceManifestTask中设置runCommand选项。路径工作正常,但其他人没有。

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

这笔交易是什么?

1 个答案:

答案 0 :(得分:4)

您需要在额外的元数据项<AdditionalProviderSettings/>中专门声明要添加的提供程序设置(以分号分隔)。将您的项目更改为此项,它将正常工作:

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