Packt.CSdotnet.SharedLibrary.Sample

Three extension methods to validate a string value.


Keywords
csharp, dotnet, extensions, packt, string, aspnetcore, dotnet-core, oop
License
MS-PL
Install
Install-Package Packt.CSdotnet.SharedLibrary.Sample -Version 8.0.0

Documentation

IMPORTANT! Common Mistakes, Improvements, and Errata aka list of corrections

C# 12 and .NET 8 - Modern Cross-Platform Development Fundamentals, Eighth Edition

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

Chapters and code solutions

Introduction

Language

Libraries

ASP.NET Core web development

Appendix and online chapter

Code solutions for Visual Studio 2022 and Visual Studio Code

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 a ChapterNN.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 and obj folders before then opening in a different code editor.

Companion Book

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:

Relationships between companion book chapters

Pillars of the .NET 8 Trilogy

Bonus content

The MVC chapter, appendix, and color figures are available to download as PDFs:

Important

Corrections for typos and other mistakes and improvements like refactoring code. Useful links to other related material.

Microsoft Certifications

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

Microsoft .NET community support

Interviews with me

Podcast interviews with me:

Written interviews with me: