C# 12 and .NET 8 – Modern Cross-Platform Development Fundamentals: Start building websites and services with ASP.NET Core 8, Blazor, and EF Core 8 C# 12 and .NET 8 – Modern Cross-Platform Development Fundamentals: Start building websites and services with ASP.NET Core 8, Blazor, and EF Core 8 Paperback Kindle
Best Sellers Rank: #118,448 in Books (See Top 100 in Books) #4 in Microsoft .NET #7 in C# Programming (Books) #37 in Object-Oriented Design
Customer Reviews: 4.5 out of 5 stars 188Reviews
Product Information
From the Publisher
Why is now a good time to learn about .NET 8?
What makes this book different from other C#12 and .NET 8 books?
Learn the fundamentals of C#, .NET, and ASP.NET
Balance between breadth and depth
Clear explanations and practical code examples
Uses a conversational style
Avoids fluff for concise, clear learning
.NET 8 is a Long Term Support(LTS) release, which means Microsoft provides support for it until November 2026. In contrast, .NET 7 was and .NET 9 will be Standard Term Support (STS) releases, with a support period of just 18 months. If you’re currently working on projects targeting .NET 5, 6, or 7, I recommend upgrading to .NET 8 promptly. During this transition, you can also leverage the new features by learning from my book.
You can expect:
A brisk read
Guidance on top code editors such as Visual Studio 2022 and Visual Studio Code
Online instructions for JetBrains Rider users
Solutions to coding tasks, questions, and exercises on the book’s GitHub
What’s new in this eighth edition?
For this eighth edition, I updated the entire book for C# 12 and .NET 8, improving the content from the seventh edition. This ensures that concept introductions and code examples are refined, relevant, and easier to follow.
This book explores the most useful C# 12 features, such as primary constructors for classes and structs, default lambda expression parameter values, and new exception guard clauses. Notably, C# 12 allows aliasing any type, including tuples, streamlining object type declarations.
.NET's latest version brings numerous performance enhancements that require no code changes. Improved native ahead-of-time (AOT) support enhances startup speed and reduces memory usage. This AOT support now extends to more project types, including ASP.NET Core web APIs implemented using minimal APIs. The significant addition to ASP.NET Core 8 is Blazor Full Stack, unifying Blazor and replacing legacy WebAssembly and Server models, explored in a dedicated chapter.
Native AOT for faster, low-memory minimal API web services
In an additional section available online, the author delves into the world of native AOT for minimal APIs. This provides you with an opportunity to explore how to make your web services start faster and use less memory using Minimal APIs, all in a convenient online format. For more information, refer to the end of Chapter 14, Building and Consuming Web Services.
New tools, such as Visual Studio 2022 HTTP Editor for web service testing
Visual Studio 2022 has a new tool, the HTTP Editor, that provides a convenient way to test web APIs. The editor provides a user interface to create and edit .http files, send HTTP requests, and display the responses. It conforms to similar standards as other tools like REST Client for Visual Studio Code.
Introducing Blazor Full Stack, a unified hosting model
In a dedicated chapter on building user interfaces with Blazor, the author demonstrates the flexibility to run C# and .NET code either on the server or directly within the browser. He introduces Blazor's unified hosting model, offering developers an expansive playground for their web applications.