Skip to content

Commit f5978d6

Browse files
committed
抑制不合理的警告
1 parent 85a091d commit f5978d6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/DotNetCampus.CommandLine/DotNetCampus.CommandLine.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,15 @@
2222
</PropertyGroup>
2323

2424
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
25+
<!-- nullable annotations is not fully supported in netstandard2.0 -->
2526
<NoWarn>$(NoWarn);CS8767</NoWarn>
2627
</PropertyGroup>
2728

29+
<PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'">
30+
<!-- https://github.com/dotnet/runtime/issues/96313 -->
31+
<NoWarn>$(NoWarn);CS8785</NoWarn>
32+
</PropertyGroup>
33+
2834
<ItemGroup>
2935
<InternalsVisibleTo Include="DotNetCampus.CommandLine.Tests" />
3036
</ItemGroup>

0 commit comments

Comments
 (0)