Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the default .NET Core SDK path in MacOS

Tags:

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?

like image 929
Daniel Teleginski Camargo Avatar asked Dec 13 '16 00:12

Daniel Teleginski Camargo


People also ask

Where is dotnet SDK located?

You can see all the installed SDKs under "C:\Program Files\dotnet\sdk". First, we are going to see how we can view our current SDK version on the machine. By default, it will be the latest installed version (the SDK you installed at last).

How do I find .NET version on Mac?

You can see both the SDK versions and runtime versions with the command dotnet --info .

Can I uninstall .NET Core SDK Mac?

On macOS, the tool can only uninstall SDKs and runtimes located in the /usr/local/share/dotnet folder. Because of these limitations, the tool may not be able to uninstall all of the . NET SDKs and runtimes on your machine. You can use the dotnet --info command to find all of the .


2 Answers

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

It took some time to find it:

find / -name dotnet
like image 129
Ivan Shakhov Avatar answered Nov 13 '22 06:11

Ivan Shakhov


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
like image 29
Atif Rehman Avatar answered Nov 13 '22 06:11

Atif Rehman