Skip to content

Commit

Permalink
Limit impact of global NoWarn (#3123)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbomer authored Jan 18, 2023
1 parent 3521ddf commit f13ad38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ILLink.Tasks/build/Microsoft.NET.ILLink.targets
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 f13ad38

Please sign in to comment.