Visual Studio ASP. Net core MVC introductory tutorial Chapter 1


ASP. Net core MVC introductory tutorial, the first lesson, the specific contents are as follows

1. Start environment

Visual studio 2017 Community Edition or other versions. During installation, check the item “ and web page development” in the “web and cloud” group and the item “development of. Net core platform” in the “other tools” group.

2. Create a web application

(1) In visual studio, select File > New > project.

(2) In the left panel of the “new project” dialog box, click “. Net core”. In the middle panel, click “ core web application (. Net core)”, name the project “mvcuserinfo”, and click “OK”, as shown in the following figure:

Configure as shown in the figure below.

After pressing the “OK” button, vs uses a missing template for the above project. Through the above operations, we now have an application that can run normally. Press F5 to run the application in debugging mode, or press ctrl-f5 to run in non height mode. The effect is as follows:

Very cool. There is an automatic circular display area in the upper part. When the size of the browser window must change, the layout, font, navigation bar and other elements will be adjusted automatically, as shown in the following figure:

When running the application, vs will start IIS express and randomly assign a port number to the temporarily established web service, such as 50969 in this example, but the situation on your computer may be different.

When running in non debugging mode, you can change the code, store files, refresh the browser, and see the code changes. Many people like this mode.

If you run the application in modal mode, you can stop debugging by pressing shift-f5.

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support developpaer.