Rider says "Unable to locate .Net SDK 6.x", but running dotnet --info shows everything is located right where Rider is looking.

If you see the images below, Rider is saying it can't locate the dotnet 6 SDK, but in the middle of the first image, you can see the result of the different commands, and in the second image, you can see the settings for the project align with the requirements. Am I missing something or is Rider just goofed?

-- Edit, sorry, this is using Rider with the following version info:

JetBrains Rider 2021.3 EAP 8

Build #RD-213.5744.78, built on November 13, 2021

Runtime version: 11.0.13+7-b1751.19 amd64
VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o.

.NET 6.0.0

Though, I just tested the same project in Rider 2021.2.2 with the same results.




Comment actions Permalink

Check in File->Settings->Toolset And Build

Use MSBuild Version setting may be pointing at mono(or older .net) instead of .net 6. 

I was able to solve my similar issue by changing this to the .net sdk msbuild location.

Comment actions Permalink

I apologize for the late reply, I only just got around to testing this. A huge thank you, though! That was exactly it. It was set to the "auto-detected" /usr/lib/mono, so I ran a system search and located a MsBuild.dll within /usr/share/dotnet/sdk/6.0.100-rc.2.21505.57/ and switched it to that and everything started working as expected. Thank you much!


Please sign in to leave a comment.