You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have had some issues with making my machine run the .NET Core 3.1 runtime environment, and have recently learned that the dotnet CLI does not find my installed SDK's. When I run dotnet --info I get the output:
Runtime Environment:
OS Name: Mac OS X
OS Version: 11.6
OS Platform: Darwin
RID: osx.11.0-x64
Base Path: /usr/local/Cellar/dotnet/5.0.207/libexec/sdk/5.0.207/
Host (useful for support):
Version: 5.0.10
Commit: 52296950a9
The problem is that the CLI looks into the /usr/local/Cellar folder - which only holds the 5.0.207 version, through brew. I have other installed versions in /usr/local/share/dotnet:
➜ ~ cd /usr/local/share/dotnet
➜ dotnet ls
dotnet packs sdk-manifests templates
host sdk shared x64
➜ dotnet cd sdk
➜ sdk ls
3.1.407 3.1.414 5.0.402 6.0.100 dotnet
So, we have many versions in /usr/local/share. To try and circumvent this issue, I created a symbolic link in the /usr/local/Cellar/dotnet/ folder, which points to /usr/local/share/dotnet (This is why we see a dotnet folder in both places, they both point to eachother)
I also set my DOTNET_ROOT path to point at the shared folder which holds the SDK's:
Arm64 support for the older runtimes was only added with our November releases. Starting in those releases, x64 installs would install to a separate folder. There are more details available here. Before then, arm64 and x64 would install on top of each other leading to confusing behavior.
Additionally, we find the first dotnet on the PATH and it looks like your cellar version is being found first so you will want to check and reorder your path.
Hi,
I have had some issues with making my machine run the .NET Core 3.1 runtime environment, and have recently learned that the dotnet CLI does not find my installed SDK's. When I run dotnet --info I get the output:
dotnet --info
.NET SDK (reflecting any global.json):
Version: 5.0.207
Commit: b2bfcaf
Runtime Environment:
OS Name: Mac OS X
OS Version: 11.6
OS Platform: Darwin
RID: osx.11.0-x64
Base Path: /usr/local/Cellar/dotnet/5.0.207/libexec/sdk/5.0.207/
Host (useful for support):
Version: 5.0.10
Commit: 52296950a9
.NET SDKs installed:
5.0.207 [/usr/local/Cellar/dotnet/5.0.207/libexec/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 5.0.10 [/usr/local/Cellar/dotnet/5.0.207/libexec/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.10 [/usr/local/Cellar/dotnet/5.0.207/libexec/shared/Microsoft.NETCore.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
The problem is that the CLI looks into the /usr/local/Cellar folder - which only holds the 5.0.207 version, through brew. I have other installed versions in /usr/local/share/dotnet:
➜ ~ cd /usr/local/share/dotnet
➜ dotnet ls
dotnet packs sdk-manifests templates
host sdk shared x64
➜ dotnet cd sdk
➜ sdk ls
3.1.407 3.1.414 5.0.402 6.0.100 dotnet
So, we have many versions in /usr/local/share. To try and circumvent this issue, I created a symbolic link in the /usr/local/Cellar/dotnet/ folder, which points to /usr/local/share/dotnet (This is why we see a dotnet folder in both places, they both point to eachother)
I also set my DOTNET_ROOT path to point at the shared folder which holds the SDK's:
➜ sdk printenv
...
DOTNET_ROOT=/usr/local/share/dotnet/sdk
DOTNET_ROOT_X64=/usr/local/share/dotnet/sdk
...
Does anyone know why my dotnet --info does not find the SDK's localted in /usr/local/share/dotnet/sdk?
Thank you for your time!
The text was updated successfully, but these errors were encountered: