开发者

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="r开发者_如何学编程unCommand">
    <waitInterval>5000</waitInterval>
    <Path>dir</Path>
    <dontUseCommandExe>True</dontUseCommandExe>
  </MsDeploySourceManifest>

Whats the deal?


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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜