Skip to content

Commit

Permalink
Add warning about unsupported TFM
Browse files Browse the repository at this point in the history
  • Loading branch information
sbomer committed May 4, 2023
1 parent 174e5e0 commit 0c73186
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ Copyright (c) .NET Foundation. All rights reserved.
is a NativeAOT app, value of SelfContained doesn't matter. -->
<NETSdkError Condition="'$(RunILLink)' != 'false' And '$(SelfContained)' != 'true'" ResourceName="ILLinkNotSupportedError" />

<!-- Using a version of ILLink that doesn't match the target framework is not supported. -->
<Warning Condition="'$(SuppressILLinkTargetFrameworkVersionWarning)' != 'true' And '$(TargetFramework)' != 'net8.0'"
Text="Unsupported TargetFramework. This version of ILLink.Tasks only supports net8.0." />

<PropertyGroup Condition=" '$(ILLinkWarningLevel)' == '' ">
<ILLinkWarningLevel Condition=" '$(EffectiveAnalysisLevel)' != '' And
$([MSBuild]::VersionGreaterThanOrEquals($(EffectiveAnalysisLevel), '5.0')) ">5</ILLinkWarningLevel>
Expand Down

0 comments on commit 0c73186

Please sign in to comment.