Skip to content

Instantly share code, notes, and snippets.

@muhammad-asn
Created October 8, 2024 14:44
Show Gist options
  • Save muhammad-asn/091d4f25936dcfcb5ee13ee034f296a5 to your computer and use it in GitHub Desktop.
Save muhammad-asn/091d4f25936dcfcb5ee13ee034f296a5 to your computer and use it in GitHub Desktop.
Add dotnet mac os
```
Make sure your macOS version meets the prerequisites
https://learn.microsoft.com/en-us/dotnet/core/macos-prerequisites?tabs=netcore2x
If it does, then after installing via the installer, in a new terminal run this command
ln -s /usr/local/share/dotnet/dotnet /usr/local/bin/
Then try dotnet --version
hopefully that should work
EDIT:
You might need to add x64 like so:
ln -s /usr/local/share/dotnet/x64/dotnet /usr/local/bin/
```
Reference: https://stackoverflow.com/questions/53030531/dotnet-command-not-found-in-mac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment