Asp. Net core Chinese Document Chapter II Guide (4.1) asp. net core MVC and Visua

Source: Internet
Author: User

Reference page:

Http://www.yuanjiaocheng.net/ASPNET-CORE/projectjson.html

Http://www.yuanjiaocheng.net/ASPNET-CORE/core-configuration.html

Http://www.yuanjiaocheng.net/ASPNET-CORE/core-middleware.html

Http://www.yuanjiaocheng.net/ASPNET-CORE/core-exception.html

Http://www.yuanjiaocheng.net/ASPNET-CORE/core-static-files.html

Original: Getting started with asp. net Core MVC and Visual Studio
Rick Anderson
Translation: Lou Yu (lyrics)
Proofreading: Liu Yi (alexlewis), Xiashen, shuo Zhang (Apple)

This tutorial will show you how to build a basic knowledge of an asp. net Core MVC Web application using Visual Studio 2015.

Install Visual Studio and. NET Core
    • Install Visual Studio Community 2015. Select Community to download and perform the default Installation. If you already have Visual Studio 2015 installed, skip this STEP.
      • Visual Studio 2015 Setup Home
    • Installing The. NET Core + Visual Studio Tools
Create a WEB application

Click New Projectfrom the Visual Studio start Page (start page) .

Or create a new item using the MENU. Click file > New (new) > Projects (project).

Follow these steps to complete the settings of the New Project Dialog box:

    • In the left pane, click Web
    • In the middle pane, click asp. NET core WEB application
    • It is important to name the project "mvcmovie" (naming the project "mvcmovie"), and the namespace will match when you copy the Code.
    • Click OK (ok)

In the New asp. net Core Web application-mvcmovie dialog box, Click Web Application (web application), and then click OK (ok) .

Visual Studio provides the default template for the MVC project you just created, enters the project name and selects some options to get an Application. This is a simple "Hello world!" project, a good start.

Press F5 to run the application in debug mode, or press Ctrl+f5 to run in Non-debug Mode.

    • Visual Studio launches IIS Express and runs your Application. Note that the Address bar localhost:端口# is displayed instead of like example.com . That's because it localhost always points to the local computer, in this case the computer that runs your Application. When Visual Studio creates a Web project, the Web server uses a random port. As shown, the port number is 1234. When you run this application, you may see different port Numbers.
    • Launching this application via ctrl+f5(non-debug Mode) allows you to make code changes, save the file, refresh the browser, and then view the code Changes. Many developers prefer to use Non-debug mode to quickly launch applications and view Changes.
    • You can start the application in debug mode or Non-debug mode by selecting the Debug menu item

    • You can debug your application by clicking the IIS Express button

The default template provides Home, contact, about, Register , and Log in Links. The following browser pictures do not show these links. Depending on the size of your browser, you may need to click the navigation icon to display Them.

We'll Learn about MVC in the next section of this tutorial and try to write some Code.

Revision history

    1. 2016/07/08,ms1;
    2. 2016/07/10, revised to 1.0.0
      • Revised by: Lou Yu (lyrics)
      • Proofreading person: Meng Liang (book Edge)

Back to Catalog

Asp. Net core Chinese Document Chapter II Guide (4.1) asp. net core MVC and Visua

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.