Skip to content

Commit

Permalink
Limit impact of global NoWarn
Browse files Browse the repository at this point in the history
  • Loading branch information
sbomer committed Nov 17, 2022
1 parent dafcaad commit 17ffe41
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 17ffe41

Please sign in to comment.