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

28 lines
807 B
Markdown
Raw Normal View History

2017-03-30 09:56:36 +08:00
---
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, cli
ms.author: riande
manager: wpickett
ms.date: 03/30/2017
ms.topic: get-started-article
2017-03-30 09:56:36 +08:00
ms.assetid: 69421638-1638-41e6-9ad7-cad666abf4db
ms.technology: aspnet
ms.prod: asp.net-core
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)