未验证 提交 801184ce 编写于 作者: A Andy Gocke 提交者: GitHub

Use MSBuildVersion instead of MSBuildToolsVersion (#40349)

Fixes #40129
上级 27c3412d
......@@ -5,7 +5,7 @@
<Target Name="ValidateMSBuildToolsVersion" Condition="'$(BuildingProject)' == 'true'">
<!-- The new editorconfig support requires MSBuild version 16.3. -->
<Error Text="Microsoft.NETCore.Compilers is only supported on MSBuild v16.3 and above"
Condition="'$(MSBuildToolsVersion)' &lt; '16.3'" />
Condition="'$(MSBuildVersion)' &lt; '16.3'" />
</Target>
<!-- Always use the local build task, even if we just shell out to an exe in case there are
......
......@@ -12,7 +12,7 @@
<Target Name="ValidateMSBuildToolsVersion" Condition="'$(BuildingProject)' == 'true'">
<!-- The new editorconfig support requires MSBuild version 16.3. -->
<Error Text="Microsoft.Net.Compilers is only supported on MSBuild v16.3 and above"
Condition="'$(MSBuildToolsVersion)' &lt; '16.3'" />
Condition="'$(MSBuildVersion)' &lt; '16.3'" />
</Target>
<!-- Always use the local build task, even if we just shell out to an exe in case there are
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册