【问题标题】:Generated *.SourceManifest doesn't include additional runCommand WebDeploy settings生成的 *.SourceManifest 不包括额外的 runCommand WebDeploy 设置
【发布时间】:2014-10-09 09:32:43
【问题描述】:

我正在尝试将runCommand 配置为等待超过默认值 1 秒才能完成。

这是一个示例pubxml 代码:

  <ItemGroup>
    <MsDeploySourceManifest Include="runCommand">
      <waitInterval>60000</waitInterval>
      <path>&quot;C:\Company\install-services.cmd&quot;</path>
    </MsDeploySourceManifest>
  </ItemGroup>

当我开始部署时,它成功在临时包目录中创建了一个*.SourceManifest.xml 文件,但它只包含路径:

  <runCommand path="&quot;C:\Company\install-services.cmd&quot;" />

此外,我正在从 Visual Studio 部署整个网站。

有没有什么办法可以得到比添加到结果文件中的路径参数更多的东西?

【问题讨论】:

    标签: asp.net visual-studio visual-studio-2013 webdeploy webdeploy-3.5


    【解决方案1】:

    除了pubxml 项目组需要一个额外的 XML 元素之外,一切都很好。最终的工作结果如下所示:

      <ItemGroup>
        <MsDeploySourceManifest Include="runCommand">
          <waitInterval>60000</waitInterval>
          <path>&quot;C:\Company\install-services.cmd&quot;</path>
          <AdditionalProviderSettings>waitInterval</AdditionalProviderSettings>
        </MsDeploySourceManifest>
      </ItemGroup>
    

    我的标记缺少&lt;AdditionalProviderSettings&gt; 元素。添加此元素后,Visual Studio 生成的*.SourceManifest.xml 看起来像以下代码:

    ...
    <runCommand path="&quot;C:\Company\install-services.cmd&quot;" waitInterval="60000" />
    ...
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-23
      • 2016-03-21
      • 1970-01-01
      • 2019-08-01
      • 1970-01-01
      相关资源
      最近更新 更多