.NET Architecture E-Books

If you think good architecture is expensive, try bad architecture.

Recently, I’ve been looking for learning resources on software architecture, especially for .NET, and I’ve found this very good series of completely free e-books from Microsoft about software architecture. They provide a nice overview of different architecture approaches, the latest technologies and trends, like containers, CI/CD processes, cloud, microservices, and serverless applications.

You can read all of them online or download in different formats to read on any device.

Containerized Docker Application Lifecycle with the Microsoft Platform and Tools

This guide is an introduction to the recommended end to end lifecycle processes you’ll use to develop, validate, and deploy containerized Docker applications using Visual Studio and Microsoft Azure.

Modernize Existing .NET Applications with Azure cloud and Windows Containers

This guide is an introduction to the strategies you’ll need to migrate existing web applications to the Azure cloud and Windows containers. You’ll learn about code strategies, data migration, orchestrators, and CI/CD processes.

Architect modern web applications with ASP.NET Core and Azure

This guide is an introduction to the recommended architecture, design, and deployment processes you’ll use to build ASP.NET and ASP.NET Core applications and host those applications in Azure.

Architecting Container and Microservice Based Applications

This guide is an introduction to developing microservices-based applications and managing them using containers. It discusses architectural design and implementation approaches using .NET Core and Docker containers.

Serverless apps: Architecture, patterns, and Azure implementation

This is a guide for building serverless applications with examples using Azure. It discusses various architecture and design approaches, the benefits and challenges that come with serverless, and provides scenarios and use cases for serverless apps.

You can find all available e-books and downloads here.

.NET Core Exclude from Coverage

It’s great to have your code covered by tests, right? And if you’re like me, you’d like to know how much of your code gets covered, the higher this metric, the lower the chance of having undetected software bugs, assuming your tests are good quality, of course.

Sometimes you need to exclude some classes from this metric to get more accurate results according to your project specifics.

For a .NET Core project, the framework provides the attribute ExcludeFromCodeCoverage. Tag your class with it and make sure to add the import to System.Diagnostics.CodeAnalysis.

This attribute is available to .NET Core 2.0 or superior.

tired good night GIF