Featured Article

Build Your First ASP.NET Core Empty Project: Step-by-Step Tutorial

Kenneth Jul 13, 2026

Are you a developer eager to explore the powerful ASP.NET Core platform but find yourself intimidated by the abundance of complex tutorials? Fret not, for we're here to guide you through creating your first empty ASP.NET Core project in a straightforward, step-by-step journey. By the end of this tutorial, you'll have a solid foundation ready to build upon as you delve deeper into ASP.NET Core's vast capabilities.

🚀Enjoy this amazing tutorial 2D Game Development: From Zero To Hero from Daniele Penazzo and practice directly in your browser sidebar with GetVM. Check it out: 👉 https://getvm.io/tutorials/2d-game-development-from-zero-to-hero
🚀Enjoy this amazing tutorial 2D Game Development: From Zero To Hero from Daniele Penazzo and practice directly in your browser sidebar with GetVM. Check it out: 👉 https://getvm.io/tutorials/2d-game-development-from-zero-to-hero

ASP.NET Core, a cross-platform, high-performance, open-source framework for building modern, cloud-based, Internet-connected applications, offers a wealth of features. But first things first - let's create a bare-bones project to understand its core structure and components.

Cute Cardboard Ideas, How To Make Cardboard Characters, Cardboard Girl, Cute Cardboard Doll, Cardboard Friend, Cardboard Roblox Character, Cardboard Doll 3d, Diy Paper Plush, Cardboard Oc
Cute Cardboard Ideas, How To Make Cardboard Characters, Cardboard Girl, Cute Cardboard Doll, Cardboard Friend, Cardboard Roblox Character, Cardboard Doll 3d, Diy Paper Plush, Cardboard Oc

Setting Up Your Development Environment

Before we dive into creating our empty project, ensure you have the following prerequisites installed on your machine:

MS Project Not Installing With Office 365 [Fix]
MS Project Not Installing With Office 365 [Fix]
  1. Visual Studio 2019 or later, with the ".NET Core cross-platform development" workload installed.
  2. Or, if you prefer command-line tools, have the .NET Core SDK installed (you can download it from the official .NET Core downloads page).

Using Visual Studio

42 Best DIY Greenhouses ( Great Tutorials & Plans! ) - A Piece of Rainbow
42 Best DIY Greenhouses ( Great Tutorials & Plans! ) - A Piece of Rainbow

Open Visual Studio, click on "Create new project", search for "ASP.NET Core Web App", and select the "Empty" template. Name your project, choose a location to save it, and click "Create".

Visual Studio will take care of creating the project skeleton for you, making the process seamless.

Using the Command-Line

Discover more about Product Design Software!
Discover more about Product Design Software!

For those who prefer the command-line, open your terminal, navigate to the desired project location, and type the following command:

dotnet new web -n MyFirstProject

Here, "web" is the template (equivalent to the "Empty" template in Visual Studio), and "MyFirstProject" is the name of your new ASP.NET Core project.

Examining the Project Structure

Tryyy itttt it made me cry a little tbh
Tryyy itttt it made me cry a little tbh

After successfully creating your empty ASP.NET Core project, take a moment to explore its initial structure:

  • bin/ - Contains the published or compiled output of your application.
  • obj/ - Holds intermediate files used during the build process.
  • MyFirstProject.csproj - The project file that lists the project's dependencies, references, and other configuration.
  • wwwroot/ - Stores static files like CSS, JavaScript, and by-default, an index.html file.
  • Properties/launchSettings.json - Configuration file that defines launch profiles for IIS Express, IIS, and Kestrel.
  • Program.cs - The entry point of your application, where you'll find the CreateHostBuilder method.
How to Open EPS Files in Inkscape: Make Inkscape More Useful By Installing Ghostscript
How to Open EPS Files in Inkscape: Make Inkscape More Useful By Installing Ghostscript
An Introduction to AutoWikiBrowser
An Introduction to AutoWikiBrowser
Butterfly life cycle craft 3D diorama
Butterfly life cycle craft 3D diorama
The 'One Small Step' App: Making a Simple Private 'Face Your Fears' App.
The 'One Small Step' App: Making a Simple Private 'Face Your Fears' App.
Websites to cure boredom part 22
Websites to cure boredom part 22
a person is playing with an easy diy toy
a person is playing with an easy diy toy
What is atkexComSvc.exe & How to Fix its High CPU Error
What is atkexComSvc.exe & How to Fix its High CPU Error
PROJECT IDEAS PART  1
PROJECT IDEAS PART 1
12 Hidden Facebook Features To Up Your Social Media Game
12 Hidden Facebook Features To Up Your Social Media Game

The Program.cs File

Double-click the Program.cs file to open it. You'll see it contains the basic structure of an ASP.NET Core application. The Build web host method configures the web host's services and middleware pipeline. You can extend this pipeline as your application grows.

Here's a quick rundown of the initial CreateHostBuilder method:

public static IHostBuilder CreateHostBuilder(string[] args) => Host.CreateDefaultBuilder(args) . ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<Startup>(); });

After understanding the basics, you're ready to dive deeper, add functionality, and explore ASP.NET Core's full range of features.

Running the Empty Project

To test your freshly created project, press F5 (or click the "Local Machine" button in Visual Studio's toolbar). The Default IIS Express instance will launch, and you'll see your ASP.NET Core application running at the specified URL (usually http://localhost:5001).

Conclusion and Next Steps

By following this step-by-step tutorial, you've successfully created an empty ASP.NET Core project and familiarized yourself with its basic structure. As you embark on your ASP.NET Core journey, consider the following next steps:

  1. Explore ASP.NET Core's middleware system to understand how requests flow through your application.
  2. Discover how to add models, views, and controllers to create a basic MVC (Model-View-Controller) application.
  3. Dive into ASP.NET Core's comprehensive documentation to find further guidance and examples.

Happy coding! The .NET ecosystem is vast and full of opportunities to grow as a developer. We're excited to see what remarkable applications you'll build with ASP.NET Core.