Where is the default .NET Core SDK path in MacOS
Asked Answered
M

4

30

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?

Machutte answered 13/12, 2016 at 0:50 Comment(0)
S
54

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

It took some time to find it:

find / -name dotnet
Somewhere answered 13/12, 2016 at 13:39 Comment(1)
Now it's /usr/local/share/dotnet/x64/dotnetBittern
I
8

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

dotnet --list-sdks
Incase answered 7/8, 2020 at 12:16 Comment(2)
This command doesn't work even when the .Net framework has been installedBreeks
This is just for dotnet coreIncase
C
6

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.

Creatural answered 3/7, 2020 at 18:0 Comment(0)
I
1

I'm on Mac (Ventura) and downloading the .NET SDK Arm64 instead of the .NET SDK 64x package worked for me.

https://dotnet.microsoft.com/en-us/download/dotnet/sdk-for-vs-code?utm_source=vs-code&utm_medium=referral&utm_campaign=sdk-install

Impede answered 15/4, 2023 at 5:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.