【翻译】使用Visual Studio创建Asp.Net Core MVC (一)

  • 时间:
  • 浏览:0

安装Visual Studio Community 2015。下载Community后默认安装,原因你原因安装还上能 跳过这步。

你也还上能 通过菜单创建新项目。点击File > New Project

https://docs.microsoft.com/zh-cn/aspnet/core/tutorials/first-mvc-app/start-mvc

默认模板有HOME,About和Contact一一一俩个链接。下图原因浏览器疑问你看还上能 这十多少 链接,要我通过点击导航图标显示。

Alternatively, you can use the menus to create a new project. Tap File > New > Project.

在Visual Studio 起始页面,点击New Project

The default template gives you working Home, About and Contact links. The browser image above doesn't show these links. Depending on the size of your browser, you might need to click the navigation icon to show them.

在这一范例里,这一人 将使用Visual Studio 2015创建基本的Asp.Net Core MVC网站。

Install Visual Studio Community 2015. Select the Community download and the default installation. Skip this step if you have Visual Studio 2015 installed.

If you were running in debug mode, tap Shift-F5 to stop debugging.

在New Asp.Net Core Web Application –MvcMovie对话框完成以下操作:

Visual Studio used a default template for the MVC project you just created, so you have a working app right now by entering a project name and selecting a few options. This is a simple "Hello World!" project, and it's a good place to start,Tap F5 to run the app in debug mode or Ctrl-F5 in non-debug mode.

Complete the New ASP.NET Core Web Application - MvcMovie dialog:

原因你运行在Debug模式下,Shift+F5停止Debug。

安装.NET Core + Visual Studio tooling

Complete the New Project dialog:

Visual Studio会根据默认模板创建MVC项目,你假使 输入一一一俩个项目名和选着十多少 选项就能创建。这是一一一俩个Hello World的项目,一一一俩个好的结束!点击F5debug模式应用原因Ctrl+F5非Debug模式运行。

This tutorial will teach you the basics of building an ASP.NET Core MVC web app using Visual Studio 2015.

In the next part of this tutorial, we'll learn about MVC and start writing some code.

Install .NET Core + Visual Studio tooling

在New Project对话框完成以下操作:

在这一范例的下一章节,这一人 将要怎样编写MVC代码。

From the Visual Studio Start page, tap New Project.