37 lines
1.0 KiB
Markdown
37 lines
1.0 KiB
Markdown
|
---
|
||
|
title: Adding a view | Microsoft Docs
|
||
|
author: rick-anderson
|
||
|
description: Adding a view to a simple ASP.NET Core MVC app
|
||
|
keywords: ASP.NET Core,
|
||
|
ms.author: riande
|
||
|
manager: wpickett
|
||
|
ms.date: 03/04/2017
|
||
|
ms.topic: get-started-article
|
||
|
ms.assetid: 6942432b-7734-1638-9ad7-cad313abdbdb
|
||
|
ms.technology: aspnet
|
||
|
ms.prod: asp.net-core
|
||
|
uid: tutorials/first-mvc-app-mac/adding-view
|
||
|
---
|
||
|
|
||
|
[!INCLUDE[adding-view](../../includes/mvc-intro/adding_view1.md)]
|
||
|
|
||
|
## Add a view
|
||
|
|
||
|
* 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 **New File** dialog:
|
||
|
|
||
|
* Select **Web** in the left pane.
|
||
|
* Select **Empty HTML file** in the center pane.
|
||
|
* Type *Index.cshtml* in the **Name** box.
|
||
|
* Select **New**.
|
||
|
|
||
|
![Add New Item dialog](adding-view/_static/add_view.png)
|
||
|
|
||
|
[!INCLUDE[adding-view22](../../includes/mvc-intro/adding_view2.md)]
|
||
|
|
||
|
>[!div class="step-by-step"]
|
||
|
[Previous](adding-controller.md)
|
||
|
<!--
|
||
|
[Next](adding-model.md)
|
||
|
-->
|