2016-12-17 14:54:31 +08:00
|
|
|
---
|
2017-07-01 07:47:15 +08:00
|
|
|
title: Adding a view
|
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-10-29 01:35:15 +08:00
|
|
|
manager: wpickett
|
2018-01-29 23:21:31 +08:00
|
|
|
ms.author: riande
|
2017-03-04 05:35:47 +08:00
|
|
|
ms.date: 03/04/2017
|
2017-03-03 08:50:36 +08:00
|
|
|
ms.prod: asp.net-core
|
2018-01-29 23:21:31 +08:00
|
|
|
ms.technology: aspnet
|
|
|
|
ms.topic: get-started-article
|
2016-10-29 01:35:15 +08:00
|
|
|
uid: tutorials/first-mvc-app/adding-view
|
|
|
|
---
|
|
|
|
|
2018-04-05 07:51:35 +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*
|
|
|
|
|
2018-04-17 07:58:56 +08:00
|
|
|
* Tap **Razor View**
|
2016-10-29 01:35:15 +08:00
|
|
|
|
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
|
|
|
|
2018-04-05 07:51:35 +08:00
|
|
|
[!INCLUDE [adding-view22](../../includes/mvc-intro/adding_view2.md)]
|
2016-10-29 01:35:15 +08:00
|
|
|
|
2018-04-05 07:51:35 +08:00
|
|
|
> [!div class="step-by-step"]
|
|
|
|
> [Previous](adding-controller.md)
|
|
|
|
> [Next](adding-model.md)
|