【发布时间】:2025-12-02 02:35:01
【问题描述】:
如果在执行“dotnet build”期间,我想使 Jenkins 构建失败,则会出现编译器警告。 我尝试在“构建后步骤”中使用“记录编译器警告...”。 我们有用于项目代码样式的 .editorconfig 文件。因此,如果我们将在此文件中注意到警告,则我的 Jenkins 构建一定失败。
【问题讨论】:
-
*.com/questions/15552055/… 所以运行
dotnet build /p:TreatWarningsAsErrors=true。
标签: .net jenkins continuous-integration compiler-warnings