繁体   English   中英

MSBuild打开vs2017 csproj文件时出错(无法识别工具版本“ 15.0”…)

[英]MSBuild error opening vs2017 csproj files (The tools version “15.0” is unrecognized…)

我遇到以下错误:

The tools version "15.0" is unrecognized. Available tools versions are "12.0", "14.0", "2.0", "3.5", "4.0".  C:\....\Sol.csproj

这段代码除外:

using(Evaluation.ProjectCollection col = new Evaluation.ProjectCollection())
{
   Evaluation.Project def = col.LoadProject(filename);
}

DLL是:Microsoft.Build版本15.1

我已经安装了Visual Studio 2017 15.3.4,在15.2之前没有发生

我已经在寻找Microsoft github#2369

MSBuild版本: .NET Framework的Microsoft(R)Build Engine版本15.3.409.57025

我几个月前才解决了这个问题。

我注意到Microsoft在dll(Microsoft.Build.Evaluation)中释放了一个“中断”,并按照以下解释进行了修复,例如: https : //developercommunity.visualstudio.com/content/problem/95732/microsoftbuildevaluation-api-is-破碎以来最r.html

谢谢你们

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM