Search code examples
.netrider

Rider cannot detect .NET core installation on Ubuntu


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?


Solution

  • 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: