【问题标题】:how to overwrite destination file(s) using MSBuild command line in Jenkins如何在 Jenkins 中使用 MSBuild 命令行覆盖目标文件
【发布时间】:2020-12-08 07:54:51
【问题描述】:

我在 Jenkins 中使用 MSBuild 使用以下命令行生成 SharePoint 包:

/p:Configuration=Release /p:OverwriteReadOnlyFiles=true /t:Package /p:BasePackagePath="c:\temp\"

现在,我想覆盖目标文件(如果存在)。 我怎样才能做到这一点? 谢谢。

【问题讨论】:

    标签: jenkins command-line msbuild


    【解决方案1】:

    选项 1: 您可以先运行 clean 命令 msbuild "c:\dev\my.sln" /t:clean /p:configuration=

    现在运行您的常规构建命令。

    选项 2: 删除所有输出文件夹 rm /f /s "c:\dev\release"

    现在运行您的常规构建

    让我知道为你解决了它...

    【讨论】:

      猜你喜欢
      • 2017-06-24
      • 2014-03-14
      • 1970-01-01
      • 1970-01-01
      • 2015-01-25
      • 2017-06-17
      • 2013-08-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多