. net core sdk 的版本 5.0.101 至少需要 msbuild 的 16.8.0 版本。当前可用的 msbuild 版本为 16.6.0.22303。

折腾Roslyn源码,报错了...

H:Git
oslynsrcDependenciesCollectionsMicrosoft.CodeAnalysis.Collections.Package.csproj : error  : The project file cannot be opened by the project 
system, because it is missing some critical imports or the referenced SDK cannot 
be found.

Detailed Information:

. net core sdk 的版本 5.0.101 至少需要 msbuild 的 16.8.0 版本。当前可用的 msbuild 版本为 16.6.0.22303。将在 global. json 中指定的. net core sdk 更改为需要当前可用的 
msbuild 版本的旧版本。

//貌似需要升级Visual Studio版本,

突然想到,Git上这么多分支,
总有一个适合我的吧,
不要最新的,只要适合自己的,
终于找到一个这个分支:"release/dev16.6",
果断切到这个分支上...

解决方案

根据自己的环境,找到合适的分支...

要不就升级一下Visual Studio试试...?

原文地址:https://www.cnblogs.com/love-zf/p/14322623.html