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

882 B

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

[!INCLUDE adding-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

[!INCLUDE adding-view22]

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