Skip to content

Commit

Permalink
Limit impact of global NoWarn (dotnet/linker#3127)
Browse files Browse the repository at this point in the history
Commit migrated from dotnet/linker@0ac99a5
  • Loading branch information
sbomer authored Nov 23, 2022
1 parent af6662e commit a087f58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Copyright (c) .NET Foundation. All rights reserved.
</PropertyGroup>

<!-- Disable Redundant Warning Suppressions by default-->
<PropertyGroup Condition="'$(_TrimmerShowRedundantSuppressions)' != 'true'">
<PropertyGroup Condition="'$(_TrimmerShowRedundantSuppressions)' != 'true' And '$(PublishTrimmed)' == 'true'">
<NoWarn>$(NoWarn);IL2121</NoWarn>
</PropertyGroup>

Expand Down

0 comments on commit a087f58

Please sign in to comment.