IMPORTANT! Common Mistakes, Improvements, and Errata aka list of corrections
Repository for the Packt Publishing book titled "C# 12 and .NET 8 - Modern Cross-Platform Development Fundamentals" by Mark J. Price
What's new in this edition? You can read a detailed list of changes between the 7th and 8th editions. You can also read a set of very short articles I wrote about what's new in C# 12 and .NET 8: https://www.linkedin.com/in/markjamesprice/recent-activity/articles/.
If you have purchased the paperback or Kindle edition, then you can request a free PDF copy at the following link: https://packt.link/free-ebook/9781837635870.
Join the Packt community on Discord: https://packt.link/csharp12dotnet8. After accepting the Discord invite, find the channel for this book named csharp12-dotnet8: https://discord.com/channels/963343534323269662/1166069438865473697.
For questions about book pricing, distribution, and so on, please contact the publisher Packt at the following email address: customercare@packt.com
My author page on Amazon: https://www.amazon.com/Mark-J-Price/e/B071DW3QGN/
All of my books on Packt's website: https://subscription.packtpub.com/search?query=mark+j.+price
My author page on Goodreads: https://www.goodreads.com/author/show/14224500.Mark_J_Price
Write an Amazon review for this book: https://packt.link/r/1837635870
Introduction
- Chapter 1 Hello C#, Welcome .NET! code/Chapter01
Language
- Chapter 2 Speaking C#: code/Chapter02
- Chapter 3 Controlling Flow, Converting Types, and Handling Exceptions: code/Chapter03
- Chapter 4 Writing, Debugging, and Testing Functions: code/Chapter04
- Chapter 5 Building Your Own Types with Object-Oriented Programming: code/Chapter05
- Chapter 6 Implementing Interfaces and Inheriting Classes: code/Chapter06
Libraries
- Chapter 7 Packaging and Distributing .NET Types: code/Chapter07
- Chapter 8 Working with Common .NET Types: code/Chapter08
- Chapter 9 Working with Files, Streams, and Serialization: code/Chapter09
- Chapter 10 Working with Data Using Entity Framework Core: code/Chapter10
- Chapter 11 Querying and Manipulating Data Using LINQ: code/Chapter11
ASP.NET Core web development
- Chapter 12 Introducing Web Development Using ASP.NET Core: code/PracticalApps
- Chapter 13 Building Websites Using ASP.NET Core Razor Pages: code/PracticalApps/Northwind.Web
- Online: Building Websites Using the Model-View-Controller Pattern: code/PracticalApps/Northwind.Mvc
- Chapter 14 Building and Consuming Web Services: code/PracticalApps/Northwind.WebApi
- Chapter 15 Building User Interface Components Using Blazor: code/PracticalApps/Northwind.Blazor
Figures for all of the code solution folders.
Visual Studio Code now has an extension named C# Dev Kit that includes a solution explorer so it can better work with Visual Studio 2022 solution files. Visual Studio 2022 for Windows, Visual Studio 2022 for Mac, and Visual Studio Code + C# Dev Kit can now use the same code solution files and projects for each chapter, found here: /code.
For Visual Studio Code: To use the chapter solution files with Visual Studio Code, install the C# Dev Kit extension. Then in Visual Studio Code, open the
ChapterNN
folder that contains aChapterNN.sln
solution file and wait for the SOLUTION EXPLORER pane to appear at the bottom of the EXPLORER. You can drag and drop to reorder the panes to put SOLUTION EXPLORER at the top. Learn more about C# Dev Kit at the following link: https://devblogs.microsoft.com/visualstudio/announcing-csharp-dev-kit-for-visual-studio-code/
Warning! If you use both Visual Studio 2022 and Visual Studio Code to open these solutions, be aware that the build process can conflict. This is because Visual Studio 2022 has its own non-standard build server that is different from the standard build server used by .NET SDK CLI. My recommendation is to only have a solution open in one code editor at any time. You should also clean the solutions between opening in different code editors. For example, after closing the solution in one code editor, I delete the
bin
andobj
folders before then opening in a different code editor.
I have written a companion book titled, Apps and Services with .NET 8, that is designed to follow on from where this book ends. You can also jump to related chapters in the second book to go deeper in topics of interest to go beyond the fundamentals, as shown in the following diagram:
The MVC chapter, appendix, and color figures are available to download as PDFs:
- Online Chapter - Building Websites Using the Model-View-Controller Pattern
- Appendix A, Answers to the Test Your Knowledge Questions.
- Color images of the screenshots/diagrams used in this book.
Corrections for typos and other mistakes and improvements like refactoring code. Useful links to other related material.
- Command-Lines page lists all commands as a single line that can be copied and pasted to make it easier to enter commands at the prompt.
- Book Links
- Common Mistakes, Improvements, and Errata aka list of corrections
- Eighth edition's support for .NET 9
Announcing the New Foundational C# Certification with freeCodeCamp: https://devblogs.microsoft.com/dotnet/announcing-foundational-csharp-certification/
Microsoft used to have professional exams and certifications for developers that covered skills like C# and ASP.NET. Sadly, they have retired them all. These days, the only developer-adjacent exams and certifications are for Azure or Power Platform, as you can see from the certification poster: https://aka.ms/traincertposter
- .NET Developer Community
- .NET Tech Community Forums for topic discussions
- Q&A for .NET to get your questions answered
- Technical questions about the C# programming language
- If you'd like to apply to be a reviewer
Podcast interviews with me:
- The .NET Core Podcast - March 3, 2023
- Yet Another Podcast with Jesse Liberty - December 2022
- The .NET Core Podcast - February 4, 2022
- Yet Another Podcast with Jesse Liberty - May 2021
- The .NET Core Podcast - February 7, 2020
- Yet Another Podcast with Jesse Liberty - February 2020
- Packt Podcasts
Written interviews with me: