Created
October 8, 2024 14:44
-
-
Save muhammad-asn/091d4f25936dcfcb5ee13ee034f296a5 to your computer and use it in GitHub Desktop.
Add dotnet mac os
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
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