AspNetCore.Docs/aspnetcore/tutorials/first-mvc-app/adding-view.md

38 lines
1.0 KiB
Markdown
Raw Normal View History

2016-12-17 14:54:31 +08:00
---
2016-11-17 08:24:57 +08:00
title: Adding a view | Microsoft Docs
2016-10-29 01:35:15 +08:00
author: rick-anderson
description: Adding a view to a simple ASP.NET Core MVC app
2016-11-18 04:13:02 +08:00
keywords: ASP.NET Core,
2016-10-29 01:35:15 +08:00
ms.author: riande
manager: wpickett
ms.date: 03/04/2017
ms.topic: get-started-article
2016-10-29 01:35:15 +08:00
ms.assetid: 6942432b-bac0-41e6-9ad7-cad313abf4db
2016-11-17 08:24:57 +08:00
ms.technology: aspnet
ms.prod: asp.net-core
2016-10-29 01:35:15 +08:00
uid: tutorials/first-mvc-app/adding-view
---
2017-03-30 09:56:36 +08:00
[!INCLUDE[adding-view](../../includes/mvc-intro/adding_view1.md)]
2016-10-29 01:35:15 +08:00
* Right click on the *Views* folder, and then **Add > New Folder** and name the folder *HelloWorld*.
* Right click on the *Views/HelloWorld* folder, and then **Add > New Item**.
* In the **Add New Item - MvcMovie** dialog
* In the search box in the upper-right, enter *view*
* Tap **MVC View Page**
* In the **Name** box, change the name if necessary to *Index.cshtml*.
2016-10-29 01:35:15 +08:00
* Tap **Add**
![Add New Item dialog](adding-view/_static/add_view.png)
2016-10-29 01:35:15 +08:00
2017-03-30 09:56:36 +08:00
[!INCLUDE[adding-view22](../../includes/mvc-intro/adding_view2.md)]
2016-10-29 01:35:15 +08:00
2016-11-10 13:17:21 +08:00
>[!div class="step-by-step"]
[Previous](adding-controller.md)
[Next](adding-model.md)