Visual Studio ASP. NET Core MVC getting started first, mvc getting started

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.