Riders .NET Sdks missing although thei are installed, Windows 11

Hello,

I Get this error trying launch .Net 8 project

You must install or update .NET to run this application.

App: xx
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '8.0.0' (x64)
.NET location: xx

The following frameworks were found:
 10.0.0-rc.2.25502.107 at [C:\Users\mikko\.dotnet\shared\Microsoft.NETCore.App]

The following frameworks for other architectures were found:
 x86
   8.0.21 at [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
   9.0.10 at [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]

I check settings → Build, Execution, Deployment → Toolset and Build

It shows that it is trying to find dotnet.exe from path C:\Users\mikko\.dotnet\dotnet.exe and that path sdks folder (C:\Users\mikko\.dotnet\sdk) only contains 10.0rc2 sdk.

I have installed .Net 8 and .Net 9 SDKs to Folder C:\Program Files\dotnet\sdk. If I go to Settings → environment, there it shows that I have .net 10 installed but it gives no option to install previous versions.

I fixed this by pointing dotnet.exe path C:\Program Files\dotnet\dotnet.exe. 

Why Rider is trying to find sdks from users folder and not from standard .net sdk location on Windows. If this is intended, why there are now ways to install previous versions of .net sdks?

I am using Rider 2025.2.4 -  RD252.27397.121


 

0
1 comment

Hello Mikko, 

Thanks for contacting JetBrains support. 

By default, Rider uses the dotnet executable from the PATH environment variable as the dotnet CLI path. In your case, it appears C:\Users\mikko\.dotnet might be taking precedence over the standard installation location (C:\Program Files\dotnet) in the PATH hierarchy.

Thanks,

Tom

0

Please sign in to leave a comment.