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?
I managed to fix the issue setting
/opt/dotnet/dotnet
in
Settings | Build,Execution,Deployment |
Toolset and Build | .NET Core CLI executable path
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:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With