wer*_*zui 7 csproj editorconfig visual-studio-2019 .net-5
我正在使用 VS 2019 16.9.0 Preview 1.0 并且有一个具有以下 PropertyGroup 的项目
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<LangVersion>latest</LangVersion>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
</PropertyGroup>
Run Code Online (Sandbox Code Playgroud)
在我的 .editorconfig 中,我为以下划线开头的字段创建了规则_。在 Visual Studio 中,我可以看到错误为IDE1006. 但是,这不会导致构建失败。从我所读到的设置<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>应该会导致构建失败。我在 Visual Studio 和命令行中使用dotnet build.
我怎么能有这个错误导致构建失败?
| 归档时间: |
|
| 查看次数: |
333 次 |
| 最近记录: |