2

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

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

这是怎么回事?

4

1 回答 1

4

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

<MsDeploySourceManifest Include="runCommand">
  <Path>dir</Path>
  <waitInterval>5000</waitInterval>
  <dontUseCommandExe>True</dontUseCommandExe>
  <AdditionalProviderSettings>waitInterval;dontUseCommandExe</AdditionalProviderSettings>
</MsDeploySourceManifest>
于 2011-08-01T16:26:18.400 回答