In this lesson, you will create your first ASP.NET Core project using Visual Studio 2026. This is an important milestone because it introduces you to the workflow used in many real .NET web applications.
Visual Studio provides multiple ASP.NET Core templates. For beginners, one of the best choices is:
This template is ideal because it introduces the MVC pattern, which is widely used in structured web development.
Once the project is created, Visual Studio generates a ready-to-run web application. This includes the core folders, startup code, and a sample homepage. Instead of beginning with an empty project, you get a working base that you can explore and modify.
To run the project, press F5 or click the Run button in Visual Studio. The application will be built and launched in your browser.
You should see a default home page generated by the template. This confirms that your development environment is working correctly.
When the project runs for the first time, several things happen:
In newer ASP.NET Core projects, the application is often configured in Program.cs.
The code may look similar to this:
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddControllersWithViews();
var app = builder.Build();
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();
app.UseAuthorization();
app.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
app.Run();
Do not worry if this looks confusing now. In later lessons, you will understand each part step by step.
MVC stands for Model-View-Controller:
This structure helps keep applications organized and easier to maintain.
Before moving to the next lesson, take a few minutes to inspect the generated folders and files. Look at:
Program.csControllersViewswwwrootappsettings.jsonYou have successfully created and run your first ASP.NET Core MVC project. This gives you a working base for future lessons. In the next lesson, we will explore the project structure in detail so you can understand what each file and folder does.