Articles → ASP.NET CORE → Create Your First Asp.Net Core Project
Create Your First Asp.Net Core Project
Why Asp.Net Core?
Create Your First Asp.Net Core Application
- Open visual studio 2019
- Click on "File" → "New" → "Project…"
- A popup window will appear. Click on the option "ASP.NET Core Web Application" and then click on the "Next" button
Click to Enlarge
- A window will appear to enter the "Project name" and "Location". Once the "Project name" is entered, click on the "Create" button
Click to Enlarge
- In the next window, select the type of .net core application. For this example, we will create a "Web Application"
Click to Enlarge
- Click on the "Create" button to create a new application
Project Structure
Click to Enlarge
- wwwroot folder → This folder contains the static file i.e., script, style, image and static HTML files
- Page Folder → This folder contains the view, page model and layout files
- Shared Folder → This folder contains 2 files: -
- _Layout.cshtml - This is the layout (or master) page
- ii _ValidationScriptsPartial.cshtml - This script file is required for validations in asp.net core project
- _ViewImports.cshtml → This file contains the code to include tag helpers in the project
- _ViewStart.cshtml → This file tells the project about which layout (or master page) is included in every project
- Views file → The files "Index.cshtml" and "Privacy.cshtml" are the view files. These files are used for creating UI
- Page Model files → The files "Index.cshtml.cs" and "Privacy.cshtml.cs" are the page model files for writing the business logic