Visual Studio ASP. NET Core MVC getting started first, mvc getting started
The first course of ASP. NET Core MVC getting started is as follows:
1. Start the environment
Visual studio 2017 community edition or other versions. During installation, select "ASP. NET and Web development" in the "Web and cloud" group and ". NET Core platform development" in the "Other Tools" group.
2. Create a web application
(1) In Visual Studio, select File> New> project.
(2) In the left pane of the new project dialog box, click ". NET Core ", in the middle panel, click" ASP.. NET Core Web application (. NET Core) ", name the project as" MVCUserInfo ", and click" OK ", such:
Such as configuration.
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 debug mode or by Ctrl-F5 in non-high mode. Shows the effect:
Very cool. The upper part is automatically displayed cyclically. When the size of the browser window changes, the layout, Font, navigation bar, and other elements are automatically adjusted, for example:
When you run an application, vs starts IIS Express and randomly assigns a port number to the temporary Web service. In this example, It is 50969, but the situation on your computer may be different.
When running in non-debug mode, you can change the code, store files, refresh the browser, and see the code changes. Many people like this mode.
If you run an application in modal mode, you can stop debugging by pressing the Shift-F5.
The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.