Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rider doesn't see NetCore 3.0

Tags:

I had used VS CODE before. But now I would like to try JetBrains Rider. Currently, I have only NetCore 3.0. But before I had 2.2. I had removed old NetCore and installed new one. I am trying to create new project. But Rider don't see NetCore 3.0.

error

I did not see ability to change NetCore SDK. My operation system is Linux Mint 18. I have only one NetCore version. And it's 3.0.

error

Why it's happening?

like image 909
Aleksej_Shherbak Avatar asked May 17 '19 09:05

Aleksej_Shherbak


People also ask

How do I open .NET Core?

NET Core Application. In the middle pane on the New Project dialog box, select Console Application (. NET Core) and name it "FirstApp", then click OK. Visual Studio will open the newly created project, and you will see in the Solution Explorer window all of the files that are in this project.


2 Answers

It is pretty common problem. I have solved it by specifying path to .Net Sdk manually. This is the screen of settings:

enter image description here

  1. Specify path to .NET binary file. It is usually has the following path /home/<your_user>/dotnet/dotnet

  2. Specify path to MSBuild file. For example my path is the next : /home/aleksej/dotnet/sdk/3.0.100-preview6-012264/MSBuild.dll

  3. Save

  4. Profit!

P.S. My operation system is Linux Mint 19.1. And version of .Net Core is not important in this case.

Update

I forgot about one important moment. If you need to change .NET version for your solution, you have to place special global.json file in the root of your solution. If you are changing .NET version for a project - put global.json on the project root path.

Example of global.json for changing .NET version:

{
  "sdk": {
    "version": "2.2.300"
  }
}
like image 159
Aleksej_Shherbak Avatar answered Sep 22 '22 14:09

Aleksej_Shherbak


If you want to find the location of your sdk then write the following command: dotnet --list-sdks. It has to show you 3.1.403 [/usr/share/dotnet/sdk] or similar to it. If it's not then consider it installed using the following guide Install .NET Core on Linux . Then select the dotnet file in .NET CORE CLI executable path, with it's respective MSBuild.dll . enter image description here
PD: Remember to save the changes globally!!!.

like image 37
Manguera v Avatar answered Sep 23 '22 14:09

Manguera v