指定的SDK"Microsoft.NET.Sdk"没找到 [英] The Specified SDK "Microsoft.NET.Sdk" was not Found

查看:666
本文介绍了指定的SDK"Microsoft.NET.Sdk"没找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我正在使用未安装Visual Studio的Rider,并且它对.NET正常工作 但是对于.NET Core,我得到了错误:

So I'm using Rider without Visual Studio installed and its working fine for .NET but for .NET Core I'm getting the error:

项目"Test2"加载失败:Das Angegebene SDK"Microsoft.NET.Sdk"出现问题. ->(未找到指定的SDK"Microsoft.NET.Sdk")C:\ Users **** \ RiderProjects \ Test2 \ Test2 \ Test2.csproj位于(0:0)

Project 'Test2' load failed: Das angegebene SDK "Microsoft.NET.Sdk" wurde nicht gefunden. -> (the specified SDK "Microsoft.NET.Sdk" was not found) C:\Users****\RiderProjects\Test2\Test2\Test2.csproj at (0:0)

项目创建设置:

加载项目时失败的错误:

The Error when the project is being loaded which fails:

(蓝色下划线表示"未找到指定的SDK" Microsoft.NET.Sdk" ")

(the blue underline means "the specified SDK "Microsoft.NET.Sdk" was not found")

骑士工具集和构建设置:

Rider Toolset and Build Settings:

已安装的.Net Core版本:

Installed .Net Core Version:

骑士版本:JetBrains Rider 2018.1.4 Build#RD-181.5550.7

Rider Version: JetBrains Rider 2018.1.4 Build #RD-181.5550.7

希望它足够详细,你们可以帮助我解决此错误:)

Hope it was detailed enough and you guys can help me to fix this error :)

推荐答案

@alphaaxmet

@alphaaxmet

您正在使用自定义的MSBuild版本

You're using a custom MSBuild version

检查您的MSBuildSDKsPath环境.变量,它应等于最新的.net核心sdk的路径,例如:C:\Program Files\dotnet\sdk\2.1.302

Check your MSBuildSDKsPath env. variable, it should be equal to the path with your latest .net core sdk , e.g.: C:\Program Files\dotnet\sdk\2.1.302

这篇关于指定的SDK"Microsoft.NET.Sdk"没找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆