I’m excited to announce the 7th edition of my coding standards book for Microsoft .NET! This book is a compilation of common Microsoft .NET coding standards in use today. In the past, for languages like Visual Basic, Microsoft published coding standards in a single document that developers could follow or use as a basis to build their own standards. Microsoft has not provided this with .NET. They have provided some standards on their document website, but you would have to dig through many web pages, and there are little, or no examples provided.
The purpose of this book is to consolidate the standards on the site, enhance them with additional standards, and take guidance from Microsoft code-checking programs like Visual Studio Analyze, FXCop, and StyleCop. The code examples in this book show real-world usage of coding standards. Also included in this book is proper architecture for code and apps that will help the reader write rock-solid apps with fewer issues that will lead to attracting and keeping users.
This 7th edition covers an evolving set of standards that includes over 130 new pages! New chapters include defensive programming, development with Visual Studio, code quality, what can be done to make code quality better, programming acronyms, and more! I use this book every day and I hope you will too. This book is written for Visual Studio 2019 & .NET 5+.