Creating an ASP.NET Core Application

Here are the steps to create an ASP.NET Core application:

  1. Make sure to create an ASP.NET Core application with an empty template.
  2. Create a Controllers folder and create a HomeController with a single Index action method.
  3. Create the following folder/files for the ViewModel:
    • Views: This folder is inside your project.
    • Views\_ViewStart.cshtml: This identifies the name of the Layout file.
    • Views\Shared: This folder holds all the shared view components for your application.
    • Shared\_Layout.cshtml: This file identifies how your web application structure should look.
    • Views\Home: This folder contains all of the Views of your HomeController.
    • Views\Home\Index.cshtml: This is the view corresponding to the Index action ...

Get ASP.NET Core 2 Fundamentals now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.