产生* .SourceManifest不包括附加runCommand WebDeploy设置 [英] Generated *.SourceManifest doesn't include additional runCommand WebDeploy settings
问题描述
我想配置 runCommand
等待的时间超过1秒的默认值更长时间才能完成。
I'm trying to configure a runCommand
to wait more than the default value of 1 second to finish.
这是一个样本 pubxml
code:
This is a sample pubxml
code:
<ItemGroup>
<MsDeploySourceManifest Include="runCommand">
<waitInterval>60000</waitInterval>
<path>"C:\Company\install-services.cmd"</path>
</MsDeploySourceManifest>
</ItemGroup>
当我开始部署,它成功地创建了临时包目录 * SourceManifest.xml
文件,但它仅包括路径:
When I start a deployment, it successfully creates a *.SourceManifest.xml
file in the temp package directory, but it only includes the path:
<runCommand path=""C:\Company\install-services.cmd"" />
此外,我部署从Visual Studio整个网站。
Furthermore, I'm deploying the whole web site from Visual Studio.
有没有什么办法让比加入所得的文件的路径参数的更多?
Is there any way to get more than the path parameter added to the resulting file?
推荐答案
一切都只是罚款 pubxml
项目组需要一个额外的XML元素。最后,工作结果如下所示code:
Everything is fine except that pubxml
item group requires an additional XML element. The final and working result looks like the following code:
<ItemGroup>
<MsDeploySourceManifest Include="runCommand">
<waitInterval>60000</waitInterval>
<path>"C:\Company\install-services.cmd"</path>
<AdditionalProviderSettings>waitInterval</AdditionalProviderSettings>
</MsDeploySourceManifest>
</ItemGroup>
我的标记缺少&LT; AdditionalProviderSettings&GT;
元素。一旦我已经添加了这个元素,由Visual Studio生成的 * SourceManifest.xml
看起来像这样code:
My markup lacked the <AdditionalProviderSettings>
element. Once I've added this element, the *.SourceManifest.xml
generated by Visual Studio looked like this code:
...
<runCommand path=""C:\Company\install-services.cmd"" waitInterval="60000" />
...
这篇关于产生* .SourceManifest不包括附加runCommand WebDeploy设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!