Zum Hauptinhalt springen
Nicht aus der Schweiz? Besuchen Sie lehmanns.de

C# 14 and .NET 10 – Modern Cross-Platform Development Fundamentals (eBook)

Build modern websites and services with ASP.NET Core, Blazor, and EF Core using Visual Studio 2026

(Autor)

eBook Download: EPUB
2025
828 Seiten
Packt Publishing (Verlag)
978-1-83620-662-0 (ISBN)

Lese- und Medienproben

C# 14 and .NET 10 – Modern Cross-Platform Development Fundamentals - Mark  J. Price
Systemvoraussetzungen
29,99 inkl. MwSt
(CHF 29,30)
Der eBook-Verkauf erfolgt durch die Lehmanns Media GmbH (Berlin) zum Preis in Euro inkl. MwSt.
  • Download sofort lieferbar
  • Zahlungsarten anzeigen

C# and .NET remain the backbone of modern enterprise and cross-platform development. Whether you're building high-performance websites and services on Windows or Linux or desktop apps that run on Windows and macOS, the .NET ecosystem provides a mature yet constantly evolving foundation for software development. With the release of C# 14 and .NET 10, developers now have access to a more powerful toolset.
This tenth edition has been thoroughly updated to reflect the latest features. It begins with a deep grounding in object-oriented programming and then walks you through building, testing, and debugging functions, as well as managing resources with .NET libraries. You'll work with data using LINQ and serialization, handle filesystem operations, and integrate new features like numerical string comparisons and OrderedDictionary improvements. This book explains C# 14 updates, such as field modifiers, partial events, and instance constructors, in a real-world context. It also guides you in building practical projects with ASP.NET Core 10, exploring Blazor and Minimal API web services that support AOT compilation-ideal for microservices and containers.
By the end of the book, you'll be ready to ship professional websites, services, and tools across platforms, confident in your ability to build software that's maintainable, efficient, and aligned with modern .NET development.


An easy-to-follow guide for beginners and intermediate programmers to master the concepts, real-world applications, and latest features of C# 14 and .NET 10 through hands-on exercises using Visual Studio 2026 and VS CodeFree with your book: DRM-free PDF version + access to Packt's next-gen ReaderKey FeaturesExplore the newest additions to the C# language, the .NET class libraries, and data modeling with Entity Framework CoreBuild professional modern websites and services with ASP.NET Core, Blazor, and Minimal API servicesEnhance your skills with step-by-step code examples and good practice tipsBook DescriptionC# and .NET remain the backbone of modern enterprise and cross-platform development. Whether you're building high-performance websites and services on Windows or Linux or desktop apps that run on Windows and macOS, the .NET ecosystem provides a mature yet constantly evolving foundation for software development. With the release of C# 14 and .NET 10, developers now have access to a more powerful toolset. This tenth edition has been thoroughly updated to reflect the latest features. It begins with a deep grounding in object-oriented programming and then walks you through building, testing, and debugging functions, as well as managing resources with .NET libraries. You'll work with data using LINQ and serialization, handle filesystem operations, and integrate new features like numerical string comparisons and OrderedDictionary improvements. This book explains C# 14 updates, such as field modifiers, partial events, and instance constructors, in a real-world context. It also guides you in building practical projects with ASP.NET Core 10, exploring Blazor and Minimal API web services that support AOT compilation ideal for microservices and containers. By the end of the book, you ll be ready to ship professional websites, services, and tools across platforms, confident in your ability to build software that's maintainable, efficient, and aligned with modern .NET development.What you will learnDiscover the new features in .NET 10, including the NumericOrdering option and OrderedDictionary enhancementsLeverage the latest ASP.NET Core 10 features, such as OpenAPI 3.1 document generation, YAML format support, and populating XML doc commentsUse native AOT publishing for faster startup and reduced memory footprintBuild rich web user interface experiences with BlazorIntegrate databases into your applications using EF Core 10 entity modelsQuery and manipulate data using LINQDevelop powerful web services with Minimal APIsWho this book is forThis book is for beginner-to-intermediate level C# and .NET developers. While prior experience with C# or .NET is not a prerequisite, a general understanding of programming concepts will be helpful. To learn about technologies for building modern .NET projects such as gRPC, SignalR, and GraphQL for services, or Avalonia, Blazor, and .NET MAUI for apps, read Mark's Apps and Services with .NET 10. For more mature web development technologies like ASP.NET Core MVC, controller-based Web API services, OData services, and Umbraco CMS, check out Mark's Real-World Web Development with .NET 10.]]>

1


Hello, C#! Welcome, .NET!


In this first chapter, the main goal is to set up your development environment to use Visual Studio 2026, Visual Studio Code, or JetBrains Rider.

Throughout this book, I will use the names Visual Studio, VS Code, and Rider to refer to these three code editors, respectively.

The other goals are understanding the similarities and differences between modern .NET, .NET Core, .NET Framework, Mono, Xamarin, and .NET Standard; creating the simplest application possible with C# 14 and .NET 10, using various code editors; discovering good places to look for help; and learning how to make the most of modern AI workflows.

My style of writing ensures that you can get started from my book and then switch to online documentation and other online resources, like videos, blogs, and forums, which are the main ways that developers like to learn, as shown at the following link: https://survey.stackoverflow.co/2025/developers#2-how-did-you-learn-to-code.

This chapter covers the following topics:

  • Introducing this book and its contents
  • Setting up your development environment
  • Understanding .NET
  • Building console apps and managing multiple projects in a solution
  • Making good use of the GitHub repository for this book
  • Running a C# code file without a project file
  • Looking for help

Free Benefits with Your Book


Your purchase includes a free PDF copy of this book along with other exclusive benefits. Check the Free Benefits with Your Book section in the Preface to unlock them instantly and maximize your learning experience.

Introducing this book and its contents


Let’s get started by introducing you to the code solutions, structure, and content of this book.

Getting code solutions for this book


You can complete all the coding tasks just from reading this book because all the code statements that you need to enter are shown in the pages. You do not need to download or clone the solution code to complete this book. The solution code is provided in the GitHub repository only so that you can view it if you get stuck working from the book, and to save you time from entering long files yourself. It is also more reliable to copy from an actual code file than from a PDF or other e-book format.

The GitHub repository for this book has solutions that use full application projects for all code tasks and exercises, found at the following link:

https://github.com/markjprice/cs14net10.

After navigating to the GitHub repository in your web browser, you can press the . (dot) key on your keyboard, or manually change .com to .dev in the link to convert the repository into a live code editor based on VS Code, called GitHub Codespaces, as shown in Figure 1.1:

Figure 1.1: GitHub Codespaces viewing the book’s GitHub repository

Warning! When you access a repository using GitHub Codespaces, its GitHub Repositories extension will attempt to download the repository’s index. By default, the maximum size can be up to 50 MB, but the repository exceeds this limit, so you will see the following warning message: Repository exceeds download size limit! Continuing with partial text services. You can ignore this message because you are not using the full features.

VS Code in a web browser is great to run alongside your chosen local code editor as you work through the book’s coding tasks. You can compare your code to the solution code and easily copy and paste parts if needed.

You do not need to use or know anything about Git to get the solution code of this book. You can download a ZIP file containing all the code solutions by using the following direct link and then extracting the ZIP file into your local filesystem: https://github.com/markjprice/cs14net10/archive/refs/heads/main.zip.

.NET terms used in this book


Throughout this book, I use the term modern .NET to refer to .NET 10 and its predecessors, like .NET 6, that derive from .NET Core. I use the term legacy .NET to refer to .NET Framework, Mono, Xamarin, and .NET Standard. Modern .NET is a unification of those legacy platforms and standards.

The style of this book


Most people learn complex topics best by imitation and repetition, rather than reading a detailed explanation of the theory; therefore, I will not overload you with detailed explanations of every step throughout this book. The idea is to get you to write some code and see it run.

You don’t need to know all the nitty-gritty details immediately. That will be something that comes with time as you build your own apps and go beyond what any book can teach you.

In the words of Samuel Johnson, author of the English dictionary in 1755, I have committed “a few wild blunders, and risible absurdities, from which no work of such multiplicity is free.” I take sole responsibility for these and hope you appreciate the challenge of my attempt to lash the wind by writing this book about rapidly evolving technologies, like C# and .NET, and the apps that you can build with them.

If you have a complaint about this book, then please contact me before writing a negative review on Amazon. Authors cannot respond to Amazon reviews, so I cannot contact you to resolve the problem and help you, or listen to your feedback and try to do better in the next edition. Please ask a question on the Discord channel for this book at https://packt.link/cs14net10, email me at markjprice@gmail.com, or raise an issue in the GitHub repository for the book at the following link: https://github.com/markjprice/cs14net10/issues.

Topics covered by this book


The following topics are covered in this book:

  • Language fundamentals: Fundamental features of the C# language, from declaring variables to writing functions and object-oriented programming.
  • Library fundamentals: Fundamental features of the .NET base class library, as well as some important optional packages for common tasks like database access.
  • Modern web development fundamentals: Modern features of the ASP.NET Core framework for server-side and client-side website and web service development. This includes Blazor and Minimal API web services and excludes controller-based features like MVC and Web API, or legacy features like Razor Pages.

This book, C# 14 and .NET 10 – Modern Cross-Platform Development Fundamentals, is best read linearly, chapter by chapter, because it builds up fundamental skills and knowledge.

Now that you know what this book covers, let’s review what the other three books in the quartet cover.

Topics covered by Real-World Web Development with .NET 10


The following topics are available in a companion book, Real-World Web Development with .NET 10:

  • ASP.NET Core MVC: Build websites using a mature and proven Model-View-Controller architecture pattern
  • ASP.NET Core Web API: Build web services using controllers
  • OData and FastEndpoints: Build web services using specialized libraries
  • Testing and Containerization: Test web user interfaces and containerize your web projects ready for deployment
  • Umbraco CMS: Build websites with content managed by end users

The first half of this book should be read linearly, and the second half can be read more like a cookbook, so if you are especially interested in building web services using FastEndpoints, then you can read that chapter without the preceding chapters about ASP.NET Core OData web services.

Topics covered by Apps and Services with .NET 10


The following topics are available in a companion book, Apps and Services with .NET 10:

  • User interfaces: Avalonia for desktop apps, Blazor for web apps, and .NET MAUI for mobile apps
  • Specialized libraries: Dates, times, time zones, and internationalization; common third-party libraries for image handling, logging, mapping, and generating PDFs; and many more
  • Data: SQL Server, ADO.NET, Dapper, and EF Core
  • Services: Caching, queuing, background services, gRPC, GraphQL, SignalR, and Minimal API web services

This book can be read like a cookbook, so if you are especially interested in building gRPC services, then you can read that chapter without the preceding chapters about ASP.NET Core Minimal API web services.

Topics covered by Tools and Skills for .NET 10


The following topics are available in a companion book, Tools and Skills for .NET 10:

  • Mastering the features of your code editor, Visual Studio or VS...

Erscheint lt. Verlag 11.11.2025
Sprache englisch
Themenwelt Mathematik / Informatik Informatik Programmiersprachen / -werkzeuge
ISBN-10 1-83620-662-3 / 1836206623
ISBN-13 978-1-83620-662-0 / 9781836206620
Informationen gemäß Produktsicherheitsverordnung (GPSR)
Haben Sie eine Frage zum Produkt?
EPUBEPUB (Ohne DRM)

Digital Rights Management: ohne DRM
Dieses eBook enthält kein DRM oder Kopier­schutz. Eine Weiter­gabe an Dritte ist jedoch rechtlich nicht zulässig, weil Sie beim Kauf nur die Rechte an der persön­lichen Nutzung erwerben.

Dateiformat: EPUB (Electronic Publication)
EPUB ist ein offener Standard für eBooks und eignet sich besonders zur Darstellung von Belle­tristik und Sach­büchern. Der Fließ­text wird dynamisch an die Display- und Schrift­größe ange­passt. Auch für mobile Lese­geräte ist EPUB daher gut geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür die kostenlose Software Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür eine kostenlose App.
Geräteliste und zusätzliche Hinweise

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.

Mehr entdecken
aus dem Bereich
Apps programmieren für macOS, iOS, watchOS und tvOS

von Thomas Sillmann

eBook Download (2025)
Carl Hanser Verlag GmbH & Co. KG
CHF 40,95
Apps programmieren für macOS, iOS, watchOS und tvOS

von Thomas Sillmann

eBook Download (2025)
Carl Hanser Verlag GmbH & Co. KG
CHF 40,95