15
votes

I've recently installed the .NET Core SDK for MacOS in order to create a demo application using the new JetBrains Rider EAP.

Project 'WebApi' load failed
Can't initialize DotNetCore: Please select  DotNet Core SDK path.
To get instructions how to setup visit https://www.microsoft.com/net/download/core

After the installation I tried to find the path to the DotNet Core SDK without success.

Any idea about the location of the .NET Core SDK?

3

3 Answers

38
votes

Try this path: /usr/local/share/dotnet/dotnet

It took some time to find it:

find / -name dotnet
1
votes

If you run this in your terminl, it will list the installed SDK's and their locations. I believe it works in windows as well

dotnet --list-sdks
0
votes

For me it was:

/System/Volumes/Data/Users/$USER/.dotnet

Also, tips, if you run find / -name dotnet do it like:

find / -name dotnet 2>/dev/null

That way you don't get any permissions errors just real hits.