Install the. NET Core SDK
Https://www.microsoft.com/net/core#macos
Install vs Code
Https://code.visualstudio.com/Download
- With VS code, you need to install some necessary plugins, such as C # extention. You can manage your plugins by the bottom of the five large button options on the left.
- IDE has some shortcut keys, this Baidu or Bing can.
- Run debugging, fourth option on the left
- Git configuration, third option on the left
Installing Nodejs
It is recommended to use homebrew installation software, if any.
Brew Install node
Installing Yeoman
Yeoman is a great tool that can help you build a variety of project skeletons.
> npm install-g Yo Bower
Installing the ASP. NET Core Template
> NPM install-g generator-aspnet
Create an ASP. NET Core app
Reference: Https://docs.microsoft.com/en-us/aspnet/core/client-side/yeoman? #building-projects-with-yeoman
Build project and project files using the Yeoman Generator tool
Getting used to vs creating class or interface is not used to creating different project, class, interface with VS code.
With yeoman ASP. NET Generator we can generate the corresponding project and file on the command line.
Specific reference: Https://github.com/OmniSharp/generator-aspnet
When vs 2017 is available, it's probably better.
Complete example
Reference: Https://www.codeproject.com/Articles/1155738/NET-Core-On-Mac-Building-An-ASP-NET-Core-App-With
Configuring the ASP. NET core development environment on Mac