我似乎无法在 MSDeploySourceManifestTask 中设置 runCommand 选项。路径工作正常,但其他路径则不行。
<MsDeploySourceManifest Include="runCommand">
<waitInterval>5000</waitInterval>
<Path>dir</Path>
<dontUseCommandExe>True</dontUseCommandExe>
</MsDeploySourceManifest>
怎么回事?
最佳答案
您需要在额外元数据项 <AdditionalProviderSettings/>
中明确声明要添加的提供程序设置(分号分隔)。将您的项目更改为此,它将正常工作:
<MsDeploySourceManifest Include="runCommand">
<Path>dir</Path>
<waitInterval>5000</waitInterval>
<dontUseCommandExe>True</dontUseCommandExe>
<AdditionalProviderSettings>waitInterval;dontUseCommandExe</AdditionalProviderSettings>
</MsDeploySourceManifest>
关于visual-studio-2010 - MsDeploySourceManifest - RunCommand : Set options (DontUseCommandExe, waitInterval),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6899634/