Search code examples
c#.netrider.net-8.0

Where does Rider install .NET


I've installed .NET through JetBrains Rider. It appears as installed: enter image description here

And my applications can be built under .NET8.0 and ran under .NET8.0 within Rider.

I located the .exe (that was built whilst I was using Rider) in bin/Debug/net8.0/name_of_my_app.exe and wanted to run it with the terminal. So I opened a terminal and did name_of_my_app.exe; it said "You must install .NET to run this application.". I therefore looked for any dotnet.exe I could find but the only two I could find were not .NET8.0:

  7.0.10 at [C:\Program Files\JetBrains\JetBrains Rider 2023.3.3\lib\ReSharperHost\windows-x64\dotnet\shared\Microsoft.NETCore.App]

So my question is: where the heck is my .NET8.0 dotnet.exe so that I can add it to my environment variable PATH and so that I don't have to launch an IDE to run my application.

I'm using Windows 11 and JetBrains Rider 2023.3.3.


Solution

  • I have never tried to install Rider before installing .NET, but you can check the Rider settings File -> Settings -> Build, Execution, Deployment -> Toolset and Build (Rider docs), it should contain info about toolset used. For example:

    enter image description here

    But I would recommend to just install it manually - download an appropriate version from here, install and then if needed change Rider settings.