强制项目使用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.
更多推荐
发布评论