Getting Started with ASP.NET Core 10 and Razor Pages

Michael Merrell January 29, 2026 463 views 3 comments

Introduction to ASP.NET Core 10

ASP.NET Core 10 is the latest version of Microsoft's cross-platform web framework. It brings significant performance improvements, new features, and enhanced developer productivity.

Why Choose Razor Pages?

Razor Pages offers a page-based programming model that makes building web UI simpler and more productive:

  • Page-focused organization with co-located models
  • Convention-based routing
  • Simpler than MVC for page-centric scenarios
  • Excellent for server-rendered applications

Creating Your First Project

Start by creating a new Razor Pages project:

dotnet new webapp -o MyApp
cd MyApp
dotnet run

Project Structure

A Razor Pages project contains:

  • Pages/: Your .cshtml and .cshtml.cs files
  • wwwroot/: Static assets
  • Program.cs: Application configuration

Creating Pages

Each page has two parts - the view (.cshtml) and the page model (.cshtml.cs).

Conclusion

Razor Pages provides a streamlined way to build web applications with ASP.NET Core 10. Perfect for developers who want a productive, maintainable codebase.

Comments (3)

Leave a Comment
Jane Doe
Jan 30, 2026 at 6:58 AM

Great tutorial! This really helped me understand Razor Pages. The examples are clear and practical.

Sarah Chen Jan 31, 2026
Thanks! Glad it was helpful. Let me know if you have any questions!
John Smith
Jan 31, 2026 at 6:58 AM

Do you have recommendations for hosting Razor Pages apps?