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
Price: [price_with_discount]
(as of [price_update_date] – Details)
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
Key FeaturesExplore the latest additions to C# 12, the .NET 8 class libraries, and Entity Framework Core 8Create professional websites and services with ASP.NET Core 8 and BlazorBuild your confidence with step-by-step code examples and tips for best practicesBook Description
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.
What you will learnDiscover C# 12’s new features, including aliasing any type and primary constructorsTry out the native AOT publish capability for ASP.NET Core 8 Minimal APIs web servicesBuild rich web experiences using Blazor Full Stack, Razor Pages, and other ASP.NET Core featuresIntegrate and update databases in your apps using Entity Framework Core modelsQuery and manipulate data using LINQBuild and consume powerful services using Web API and Minimal APIWho this book is for
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.
Table of ContentsHello, C#! Welcome, .NET!Speaking C#Controlling Flow, Converting Types, and Handling ExceptionsWriting, Debugging, and Testing FunctionsBuilding Your Own Types with Object-Oriented ProgrammingImplementing Interfaces and Inheriting ClassesPackaging and Distributing .NET TypesWorking with Common .NET TypesWorking with Files, Streams, and SerializationWorking with Data Using Entity Framework CoreQuerying and Manipulating Data Using LINQIntroducing Web Development Using ASP.NET CoreBuilding Websites Using ASP.NET Core Razor PagesBuilding and Consuming Web ServicesBuilding User Interfaces Using Blazor
From the Publisher
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
Why is now a good time to learn about .NET 8?
.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.
Add to Cart
Add to Cart
Customer Reviews
4.7 out of 5 stars
20
4.7 out of 5 stars
54
Price
$37.93$37.93
$37.93$37.93
Edition
Second Eighth
Target audience
Beginner-to-intermediate level in building apps and services Beginner-to-intermediate level in the C# language, .NET libraries, and ASP.NET Core web development
Prerequisites
Intermediate-level C#, .NET, and ASP.NET Core (introduced in the first book) No prior exposure to C# or .NET, but a general understanding of programming is helpful
Topics covered
Common .NET-adjacent technologies such as Cosmos DB, GraphQL, .NET MAUI, Blazor, gRPC, and more C# language, .NET libraries, ASP.NET Core, object-oriented programming, testing, EF Core, and more
Publisher : Packt Publishing; 8th ed. edition (November 14, 2023)
Language : English
Paperback : 828 pages
ISBN-10 : 1837635870
ISBN-13 : 978-1837635870
Item Weight : 3.12 pounds
Dimensions : 9.25 x 7.52 x 1.64 inches
[ad_2]