开发者

MsDeploySourceManifest - RunCommand: Set options (DontUseCommandExe, waitInterval)

开发者 https://www.devze.com 2023-03-24 02:27 出处:网络
I can\'t seem to set the runCommand options in my MSDeploySourceManifestTask.Path works fine but the others do not.

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

精彩评论

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