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

  • 时间:
  • 浏览:1
  • 来源:幸运飞艇_幸运飞艇官方

安装Visual Studio Community 2015。下载Community后默认安装,不可能 你不可能 安装能不都才能跳过这步。

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

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.

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

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

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

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

在什儿 范例里,让.我将使用Visual Studio 2015创建基本的Asp.Net Core MVC网站。

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

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

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

默认模板有HOME,About和Contact一一个多多多链接。下图不可能 浏览器疑问图片你看不都才能这有几块链接,你能不都才能通过点击导航图标显示。

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.

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

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

Install .NET Core + Visual Studio tooling

在什儿 范例的下一章节,让.我将要怎样编写MVC代码。

Complete the New Project dialog:

安装.NET Core + Visual Studio tooling

你才能不都才能通过菜单创建新项目。点击File > New Project

From the Visual Studio Start page, tap New Project.

Visual Studio会根据默认模板创建MVC项目,你否则输入一一一个多多多项目名和选折 有几块选项就能创建。这是一一一个多多多Hello World的项目,一一一个多多多好的现在结束!点击F5debug模式应用不可能 Ctrl+F5非Debug模式运行。

不可能 你运行在Debug模式下,Shift+F5停止Debug。