The first project to create a core (netCore Study Notes 1)

Reproduced in: HTTPS: //www.cnblogs.com/nozer1993/p/9042085.html
1. Installation

core and netFramework is actually relatively independent, but the core of the IDE support is started in vs2017, vs2017 installation environment and must be used with .net4.6, so:

Step1: Installation .net4.6

Step2: Installation vs2017

Tips: there will be more Components for selection in the 2017 installation interface, then you can select the part they need.

2. Create a project

This project provides several types core2.0, in general, will be used is the console, libraries, ASP.NET core web. Other ways to create consistent and .net.

3. Solution Architecture (ASP.NET core Web project)

MVC core of the project, the Startup inside the startup information, including routing configuration is also inside.

Program which is a program entry, call Startup

appsettings.json can be understood as web.config, configuration files are in use in the core json file

Control unanimously, view, model and .net in the MVC.

 

Learning the next step middleware and implement custom routing complete separation of view.

Guess you like

Origin www.cnblogs.com/wenwushen/p/12171431.html