: Mark J. Price
: C# 13 and .NET 9 - Modern Cross-Platform Development Fundamentals Start building websites and services with ASP.NET Core 9, Blazor, and EF Core 9
: Packt Publishing
: 9781835881231
: 1
: CHF 38.30
:
: Programmiersprachen
: English
: 828
: DRM
: PC/MAC/eReader/Tablet
: ePUB

This Packt bestseller continues to be the definitive guide to modern cross-platform development. The 9th edition of C# 13 and .NET 9 - Modern Cross-Platform Development Fundamentals has been updated to cover the latest features and improvements in .NET 9 and C# 13. You'll start by mastering object-oriented programming, learning how to write, test, and debug functions, and implementing interfaces. You'll then dive into .NET APIs for data management, filesystem operations, and serialization.

This latest edition integrates .NET 9 enhancements into its examples: faster exceptions and new LINQ methods. New ASP.NET Core 9 features include optimized static assets, built-in OpenAPI document generation, and the HybridCache.

Practical examples, such as building websites and services with ASP.NET Core, have been refreshed to utilize the latest .NET 9 features. The book also introduces Blazor, with its new unified hosting model for unparalleled code reusability. With these updates, you'll learn how to build robust applications and services efficiently and effectively.

By the end of this book, you'll have the knowledge and confidence to create professional and high-performance web applications using the latest technologies in C# 13 and .NET 9.

1


Hello, C#! Welcome, .NET!


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

Throughout this book, I will use the namesVisual Studio,VS Code, andRider 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# 13 and .NET 9, using various code editors; and then discovering good places to look for help.

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/2024/developer-profile#learning-to-code.

This chapter covers the following topics:

  • Introducing this book and its contents
  • Setting up your development environment
  • Understanding .NET
  • Building console apps using Visual Studio
  • Building console apps using VS Code
  • Making good use of the GitHub repository for this book
  • Looking for help

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


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/cs13net9

After navigating to the GitHub repository in your web browser, 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 inFigure 1.1:

Figure 1.1: GitHub Codespaces live-editing 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 50MB 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 c