You can install .NET Core on your MacOs quite easily. You can find instructions on official Microsoft page. Or just make these steps:
1. Install openssl
library with either homebrew
or macports
Homebrew:
1 2 3 4 |
brew update brew install openssl ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/ ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/ |
macports:
1 2 3 |
port install openssl ln -s /opt/local/lib/libcrypto.1.0.0.dylib /usr/local/lib/ ln -s /opt/local/lib/libssl.1.0.0.dylib /usr/local/lib/ |
In any case make sure you are under admin and check your path to installed openssl lib (/opt/local/lib/
or /usr/local/opt/openssl/lib/
). It may differs depending on your configs.
2. Download and install official .NET Core installer.
3. Make sure everything went well by typing in terminal: dotnet --info
4. Try to create and run a project:
1 2 3 4 5 |
mkdir hwapp cd hwapp dotnet new dotnet restore dotnet run |
You should see "Hello World!"
in Terminal.