You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Make TrimmerDefaultAction public
Fixes#16140
Relevant for dotnet/docs#23766
* Don't suppress trim warnings when default action is link
* Move SuppressTrimAnalysisWarnings to targets
So that the condition takes into account properties set in the project file.
Copy file name to clipboardExpand all lines: src/WebSdk/Web/Sdk/Sdk.targets
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,9 @@ Copyright (c) .NET Foundation. All rights reserved.
22
22
Microsoft.AspNetCore.App. This needs to happen after the .NET SDK has evaluated TFMs.
23
23
-->
24
24
<AddRazorSupportForMvcCondition="'$(DisableImplicitFrameworkReferences)' != 'true' And '$(AddRazorSupportForMvc)' == '' And '$(TargetFrameworkIdentifier)' == '.NETCoreApp' And '$(_TargetFrameworkVersionWithoutV)' >= '3.0'">true</AddRazorSupportForMvc>
25
+
26
+
<!-- Trimmer defaults that depend on user-definable settings -->
27
+
<SuppressTrimAnalysisWarningsCondition="'$(SuppressTrimAnalysisWarnings)' == '' And '$(TrimmerDefaultAction)' != 'link'">true</SuppressTrimAnalysisWarnings>
0 commit comments