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

1018 B

title author description keywords ms.author manager ms.date ms.topic ms.assetid ms.technology ms.prod uid
Adding a view rick-anderson Adding a view to a simple ASP.NET Core MVC app ASP.NET Core, riande wpickett 03/04/2017 get-started-article 6942432b-7734-1638-9ad7-cad313abdbdb aspnet asp.net-core tutorials/first-mvc-app-mac/adding-view

[!INCLUDEadding-view]

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 File.

  • 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

[!INCLUDEadding-view22]

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