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

967 B

title author description manager ms.author ms.date ms.prod ms.technology ms.topic uid
Add a view to an ASP.NET Core app rick-anderson Learn how to add a view to an ASP.NET Core app. wpickett riande 03/04/2017 asp.net-core aspnet get-started-article 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