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

648 B

title author description ms.author ms.date uid
Add a view to an ASP.NET Core app rick-anderson Adding a view to a simple ASP.NET Core MVC app riande 03/30/2017 tutorials/first-mvc-app-xplat/adding-view

[!INCLUDE adding-view]

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]

[!div class="step-by-step"] Previous - Add a controller Next - Add a model