浏览代码

Fix NET8 build

Max Katz 2 年之前
父节点
当前提交
e9519e2719
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Directory.Build.targets

+ 1 - 1
Directory.Build.targets

@@ -1,5 +1,5 @@
 <Project>
-  <PropertyGroup Condition="$(NETCoreSdkVersion.StartsWith('7.0'))">
+  <PropertyGroup Condition="$([MSBuild]::VersionGreaterThanOrEquals($(NETCoreSdkVersion), '7.0'))">
     <DefineConstants>$(DefineConstants);NET7SDK</DefineConstants>
   </PropertyGroup>  
 </Project>