Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rider cannot detect .NET core installation on Ubuntu

Tags:

.net

rider

As instructed by the Rider IDE, I installed the .NET Core framework from Microsoft. I know that the installation was successful since I am able to run the dotnet command from my terminal. However, after restarting Rider, I still get the following message:

Cannot detect .NET Core. Please install .NET Core and restart Rider.

Am I doing anything wrong?

like image 559
Mutating Algorithm Avatar asked Feb 12 '18 03:02

Mutating Algorithm


2 Answers

I managed to fix the issue setting

/opt/dotnet/dotnet

in

Settings | Build,Execution,Deployment |
  Toolset and Build | .NET Core CLI executable path

enter image description here

Previously, I was using /usr/bin/dotnet, but it doesn't work anymore. Also, auto detect seems to be broken.

Actually, /usr/bin/dotnet, the path returned by which dotnet, is just a shell file defering to /opt/dotnet/dotnet, as its content is:

#!/bin/sh

export DOTNET_ROOT=/opt/dotnet
exec /opt/dotnet/dotnet $@

# vim: ts=2 sw=2 et:
like image 91
Arialdo Martini Avatar answered Oct 02 '22 14:10

Arialdo Martini


None of these worked for me. I am on PopOS and found a solution here shown in the below screenshot. I think in general it is still a bad idea to install anything from Jetbrains through the Snap store. I've had issues with Intellij and Pycharm as well dating back to ~2014 that were immediately resolved by not using the Snap store.

enter image description here

like image 34
Frikster Avatar answered Oct 02 '22 14:10

Frikster