Search code examples
c#.net-corejetbrains-iderider

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


Solution

  • @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