Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
-->
<NoWarn>$(NoWarn);DCL101;NU1507</NoWarn>
<!--
CA1416: 平台兼容性警告
CA1416: Platform compatibility warning
-->
<WarningsAsErrors>$(WarningAsErrors);CA1416</WarningsAsErrors>
<WarningsAsErrors>$(WarningsAsErrors);CA1416</WarningsAsErrors>
</PropertyGroup>

<!-- 库和项目信息 -->
Expand Down
8 changes: 8 additions & 0 deletions src/DotNetCampus.CommandLine/Package/build/Package.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
<Project>

<PropertyGroup>

<!--
The analyzers in this package is very important, so we treat related warnings as errors.
- CS8785: Analyzer does not generate sources
- CS9057: Analyzer version is greater than the compiler version
-->
<WarningsAsErrors>$(WarningsAsErrors);CS8785;CS9057</WarningsAsErrors>

<DotNetCampusCommandLineUseInterceptor Condition="'$(DotNetCampusCommandLineUseInterceptor)' == ''">true</DotNetCampusCommandLineUseInterceptor>
<InterceptorsNamespaces>$(InterceptorsNamespaces);DotNetCampus.Cli.Compiler</InterceptorsNamespaces>

Expand Down