Getting ready

You will need access to a Mac in order to run the application you created. I'm using a Mac mini (late 2012) with a 2.5 GHz Intel Core i5 CPU running macOS Sierra with 4GB of memory.
In order to use your .NET Core apps on a Mac, there are a few things you need to do:

  1. We need to install Homebrew, which is used to get the latest version of OpenSSL. Open the Terminal on your Mac by typing Terminal into your Spotlight search:
The following steps can also be completed by going to https://www.microsoft.com/net/core#macos  and performing these on your Mac.
  1. Paste the following at the Terminal prompt and press Enter:
        /usr/bin/ruby -e "$(curl -fsSL         https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. If the Terminal asks you for your password, enter your password and press Enter. You will not see anything as you type. This is normal. Just type your password and press Enter to continue.
The requirements for installing Homebrew are an Intel CPU, OS X 10.10 or higher, Command Line Tools (CLT) for Xcode, and a Bourne-compatible shell for installation, such as bash or zsh. Terminal is thus well suited.

Depending on the speed of your Internet connection and whether you have CLT for Xcode installed, the process of installing Homebrew can take some time to complete. When completed, the Terminal should look as follows:

Typing in brew help will show you some useful commands you can use:

Run the following commands one after the other in the Terminal:

  • brew update
  • brew install openssl
  • mkdir -p /usr/local/lib
  • 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/

We then need to install the .NET Code SDK. From the URL https://www.microsoft.com/net/core#macos  click on the Download .NET Core SDK button. After the download has completed, click on the .pkg file downloaded. Click on the Continue button to install the .NET Core 1.1.0 SDK:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.96.105