Skip to content

Commit

Permalink
Add nowarns for reference assemblies to be annotated with nullable wa…
Browse files Browse the repository at this point in the history
…rnings (dotnet/corefx#37901)

Commit migrated from dotnet/corefx@41489a9
  • Loading branch information
safern authored May 23, 2019
1 parent 54dbd72 commit dfb63d3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion eng/ReferenceAssemblies.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
<IntermediateOutputPath>$(ArtifactsObjDir)ref/$(MSBuildProjectName)/$(Configuration)</IntermediateOutputPath>

<!-- disable warnings about unused fields -->
<NoWarn>$(NoWarn);0169;0649</NoWarn>
<NoWarn>$(NoWarn);CS0169;CS0649;CS8618</NoWarn>

<!-- disable CS8597 because we throw null on reference assemblies. -->
<NoWarn>$(NoWarn);CS8597</NoWarn>

<!-- We base calls from constructors with null literals. -->
<NoWarn>$(NoWarn);CS8625</NoWarn>
</PropertyGroup>

<ItemGroup Condition="'$(IsReferenceAssembly)'=='true'">
Expand Down

0 comments on commit dfb63d3

Please sign in to comment.