强制项目使用dotnet构建重新编译(Force project to be recompiled using dotnet build)

编程入门 行业动态 更新时间:2024-10-27 22:32:33
强制项目使用dotnet构建重新编译(Force project to be recompiled using dotnet build)

如果没有更改,使用dotnet build项目将不会重新编译:

Project {project name} was previously compiled. Skipping compilation.

是否有可能强制重新编译项目? 我查看了命令选项 ,但没有找到任何相关参数。

Using dotnet build the project will not by recomplied if there are no changes:

Project {project name} was previously compiled. Skipping compilation.

Is it possible to force project to be recompiled? I have looked into command options, but haven't found any related parameters.

最满意答案

您应该通过指定--no-incremental选项来关闭增量编译(默认情况下,增量编译是打开的,这意味着编译器会在检测到方法中的任何更改时编译代码等)或清理输出目录。

You should either switch the incremental compilation off by specifying the --no-incremental option (by default the incremental compilation is on which means that compiler will compile the code if it detects any changes in methods, etc) or clean up the output directory.

更多推荐

本文发布于:2023-07-24 00:06:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1239020.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:项目   dotnet   Force   build   recompiled

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!