Skip to content

Commit f880a68

Browse files
committed
use NETCoreSdkVersion instead of SdkAnalysisLevel
1 parent f8faee0 commit f880a68

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project>
33
<PropertyGroup>
4-
<Version>6.6.2</Version>
4+
<Version>6.6.3</Version>
55
<AssemblyVersion>1.0.0</AssemblyVersion>
66
<PackageTags>Polyfill</PackageTags>
77
<DisableImplicitNamespaceImports>true</DisableImplicitNamespaceImports>

src/Polyfill/Polyfill.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<LowerFramework>$(TargetFramework.ToLower())</LowerFramework>
55
<LowerFrameworks>$(TargetFrameworks.ToLower())</LowerFrameworks>
66
</PropertyGroup>
7-
<PropertyGroup Condition="$([MSBuild]::VersionGreaterThanOrEquals($(SdkAnalysisLevel), '9'))">
7+
<PropertyGroup Condition="'$(NETCoreSdkVersion)' != '' AND $([MSBuild]::VersionGreaterThanOrEquals($(NETCoreSdkVersion), '9'))">
88
<DefineConstants Condition="$(LangVersion) == '13'">$(DefineConstants);LangVersion13</DefineConstants>
99
<DefineConstants Condition="$(LangVersion) == 'latest'">$(DefineConstants);LangVersion13</DefineConstants>
1010
<DefineConstants Condition="$(LangVersion) == 'preview'">$(DefineConstants);LangVersion13</DefineConstants>

0 commit comments

Comments
 (0)