C# 12 and .NET 8 – Modern Cross-Platform Development Fundamentals

This latest edition of the bestselling Packt series will give you a solid foundation to start building projects using modern C# and .NET with confidence.

You'll learn about object-oriented programming; writing, testing, and debugging functions; and implementing interfaces. You'll take on .NET APIs for managing and querying data, working with the fi lesystem, and serialization. As you progress, you'll explore examples of cross-platform projects you can build and deploy, such as websites and services using ASP.NET Core.

This latest edition integrates .NET 8 enhancements into its examples: type aliasing and primary constructors for concise and expressive code. You'll handle errors robustly through the new built-in guard clauses and explore a simplified implementation of caching in ASP.NET Core 8.

If that's not enough, you'll also see how native ahead-of-time (AOT) compiler publish lets web services reduce memory use and run faster. You'll work with the seamless new HTTP editor in Visual Studio 2022 to enhance the testing and debugging process. You'll even get introduced to Blazor Full Stack with its new unified hosting model for unparalleled web development flexibility.

Type
ebook
Category
publication date
2023-11-14
what you will learn

Discover C# 12's new features, including aliasing any type and primary constructors
Try out the native AOT publish capability for ASP.NET Core 8 Minimal APIs web services
Build rich web experiences using Blazor Full Stack, Razor Pages, and other ASP.NET Core features
Integrate and update databases in your apps using Entity Framework Core models
Query and manipulate data using LINQ
Build and consume powerful services using Web API and Minimal API

no of pages
828
duration
1656
key features
Explore the latest additions to C# 12, the .NET 8 class libraries, and Entity Framework Core 8 * Create professional websites and services with ASP.NET Core 8 and Blazor * Build your confidence with step-by-step code examples and tips for best practices
approach
This book is a beginner-friendly overview of the technological landscape of C# 12 and .NET 8. As you progress through the chapters, you’ll get an all-round experience, from uncovering the power of this platform to learning how to apply the concepts to create real-world products.
audience
This book is for beginners as well as intermediate-level C# and .NET programmers who have worked with C# in the past and want to catch up with the changes made in the last few years.

Prior exposure to C# or .NET is not a prerequisite. A general understanding of programming will help you to work through the book more comfortably, though the content is suitable for those completely new to programming.

If you already have some C# and .NET skills and want to focus on developing practical apps, you can pick up Mark’s other .NET book, Apps and Services with .NET 8, instead.
meta description
An accessible guide for beginner-to-intermediate programmers to the concepts, real-world applications, and latest features of C# 12 and .NET 8, with hands-on exercises using Visual Studio 2022 and Visual Studio Code.

Purchase of the print or Kindle book includes a free PDF eBook
short description
Whether you’re diving back into C# or starting out, this new edition of our bestselling guide will teach you the fundamentals of object-oriented programming and working with databases using Entity Framework Core. You’ll also learn about website development using ASP.NET Core Razor Pages, the Model-View-Controller pattern, and Blazor for web component user interfaces. This updated edition is equipped with the latest advancements and technologies.
subtitle
Start building websites and services with ASP.NET Core 8, Blazor, and EF Core 8
keywords
C#, C# 12, Object oriented programming, .NET 8, .NET books, .NET, .NET Core, Dotnet core, Dotnet books, Dotnet 8, Dotnet, Blazor c#, dotnet MVC, c sharp, OOP, model view controller, mvc, entity framework, web development, web apps, razor pages, Blazor Full Stack, EF Core, SQLite, asp.net core, asp.net, asp.net core MVC
Product ISBN
9781837635870