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
<PropertyGroupCondition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and '$(HasRuntimeOutput)' == 'true'">
178
-
178
+
179
179
<!-- Breaking change in .NET 8: Projects with 8.0+ TFMS will no longer have RuntimeIdentifier imply SelfContained. Note that PublishReadyToRun will imply SelfContained in these versions. -->
180
180
<SelfContainedCondition="'$(SelfContained)' == '' and
181
181
'$(RuntimeIdentifier)' != '' and
182
182
'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and
<_RuntimeIdentifierUsesAppHostCondition="$(RuntimeIdentifier.StartsWith('ios')) or $(RuntimeIdentifier.StartsWith('tvos')) or $(RuntimeIdentifier.StartsWith('maccatalyst')) or $(RuntimeIdentifier.StartsWith('android')) or $(RuntimeIdentifier.StartsWith('browser')) or $(RuntimeIdentifier.StartsWith('wasi'))">false</_RuntimeIdentifierUsesAppHost>
188
188
<_RuntimeIdentifierUsesAppHostCondition="'$(_IsPublishing)' == 'true' and '$(PublishAot)' == 'true'">false</_RuntimeIdentifierUsesAppHost>
@@ -329,6 +329,16 @@ Copyright (c) .NET Foundation. All rights reserved.
329
329
330
330
</Target>
331
331
332
+
<PropertyGroup>
333
+
<!-- Suppress the .NET Core SDK preview message if the users has tried to express their intent to do so.
334
+
MSBuild doesn't allow Messages to be suppressed by NoWarn, but we've trained users to reach for this,
335
+
so let's bridge their intent a bit. -->
336
+
<SuppressNETCoreSdkPreviewMessage
337
+
Condition="'$(_NETCoreSdkIsPreview)' == 'true'
338
+
AND '$(SuppressNETCoreSdkPreviewMessage)' == ''
339
+
AND '$(NoWarn)' != ''
340
+
AND $(NoWarn.Contains('NETSDK1057'))">true</SuppressNETCoreSdkPreviewMessage>
0 commit comments