Learning ASP.Net Core from Scratch - Chapter 1



In Visual Studio


Chapter - 1 (Setting up the base)

1. Create a new project in C# -> Web -> Chose Asp.Net Core Web Application


Enter a Project name and choose Location

2. Choose the Web Application template to start from scratch (or Empty under ASP.Net Core 2.1)


3. Your solution explorer should look like something like this



4. The application starts from Program.cs, lets take a look at the details
It starts from Main method,  It has a function called "CreateWebHostBuilder()"  and the function is defined below, which creates a default builder using the "Startup" class.

5. Lets look at the Startup.cs class

It has two methods, ConfigureServices method gathers the services required and Configure method initiates the services.

Comments