Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The Specified SDK "Microsoft.NET.Sdk" was not Found

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

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)

Project Creating Settings:

img1

The Error when the project is being loaded which fails:

img2

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

Rider Toolset and Build Settings:

img3

Installed .Net Core Version:

img4

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 :)

like image 761
AlphaAxmet Avatar asked Aug 10 '18 02:08

AlphaAxmet


People also ask

Where can I find .NET SDK?

You can see both the SDK versions and runtime versions with the command dotnet --info .

What is Microsoft .NET SDK?

NET SDK is a set of libraries and tools that allow developers to create . NET applications and libraries. It contains the following components that are used to build and run applications: The . NET CLI.

Can I uninstall Microsoft .NET SDK?

The . NET Uninstall Tool ( dotnet-core-uninstall ) lets you remove . NET SDKs and runtimes from a system. A collection of options is available to specify which versions should be uninstalled.

Where is global JSON located?

The . NET SDK looks for a global. json file in the current working directory (which isn't necessarily the same as the project directory) or one of its parent directories.


1 Answers

@alphaaxmet

You're using a custom MSBuild version

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

like image 57
Damir Beylkhanov Avatar answered Oct 22 '22 15:10

Damir Beylkhanov