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
|
2017-03-04 05:35:47 +08:00
|
|
|
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
|
2017-03-04 05:35:47 +08:00
|
|
|
ms.date: 03/04/2017
|
2017-06-01 05:55:29 +08:00
|
|
|
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
|
2017-03-03 08:50:36 +08:00
|
|
|
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**
|
|
|
|
|
2016-12-17 11:05:01 +08:00
|
|
|
* In the **Name** box, change the name if necessary to *Index.cshtml*.
|
2016-10-29 01:35:15 +08:00
|
|
|
|
|
|
|
* Tap **Add**
|
|
|
|
|
2016-12-23 02:03:29 +08:00
|
|
|
![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)
|
2017-04-08 11:45:50 +08:00
|
|
|
[Next](adding-model.md)
|