[英]how to overwrite destination file(s) using MSBuild command line in Jenkins
I am using MSBuild in Jenkins to generate a SharePoint package using the following command line:我在 Jenkins 中使用 MSBuild 生成 SharePoint ZEFE90A8E604A7C840E88D03A67F6B7 使用以下命令:
/p:Configuration=Release /p:OverwriteReadOnlyFiles=true /t:Package /p:BasePackagePath="c:\temp\"
Now, I would like to overwrite the destination file or files if they exist.现在,我想覆盖目标文件(如果存在)。 How can I do that?
我怎样才能做到这一点? Thank you.
谢谢你。
Option 1: You can simply run clean command first Msbuild "c:\dev\my.sln" /t:clean /p:configuration=选项 1:您可以先运行 clean 命令 Msbuild "c:\dev\my.sln" /t:clean /p:configuration=
And now run your regular build command.现在运行您的常规构建命令。
Option 2: Delete all output folder rm /f /s "c:\dev\release"选项2:删除所有output文件夹 rm /f /s "c:\dev\release"
Now run your regular build现在运行您的常规构建
Let me know solved it for you...让我知道为你解决了它...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.