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

26 lines
713 B
Markdown
Raw Normal View History

2017-03-30 09:56:36 +08:00
---
2017-07-01 07:47:15 +08:00
title: Adding a view
2017-03-30 09:56:36 +08:00
author: rick-anderson
description: Adding a view to a simple ASP.NET Core MVC app
manager: wpickett
2018-01-29 23:21:31 +08:00
ms.author: riande
2017-03-30 09:56:36 +08:00
ms.date: 03/30/2017
ms.prod: asp.net-core
2018-01-29 23:21:31 +08:00
ms.technology: aspnet
ms.topic: get-started-article
2017-03-30 09:56:36 +08:00
uid: tutorials/first-mvc-app-xplat/adding-view
---
[!INCLUDE[adding-view](../../includes/mvc-intro/adding_view1.md)]
Add an `Index` view for the `HelloWorldController`.
* Add a new folder named *Views/HelloWorld*.
* Add a new file to the *Views/HelloWorld* folder name *Index.cshtml*.
[!INCLUDE[adding-view2](../../includes/mvc-intro/adding_view2.md)]
>[!div class="step-by-step"]
2017-04-15 01:46:51 +08:00
[Previous - Add a controller](adding-controller.md)
[Next - Add a model](adding-model.md)