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

898 B

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

[!INCLUDE adding-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 Add New Item - MvcMovie dialog

    • In the search box in the upper-right, enter view

    • Tap Razor View

    • In the Name box, change the name if necessary to Index.cshtml.

    • Tap Add

Add New Item dialog

[!INCLUDE adding-view22]

[!div class="step-by-step"] Previous Next