Skip to content

Sponsor: Do you build complex software systems? See how NServiceBus makes it easier to design, build, and manage software systems that use message queues to achieve loose coupling. Get started for free.

Learn more about Software Architecture & Design.
Join thousands of developers getting weekly updates to increase your understanding of software architecture and design concepts.


Follow @CodeOpinion

.NET Core

Using ASP.NET Core Razor Views from a Class Library

I ran into a situation where I wanted to use a Razor views and layouts that were in a .NET Standard 2.0 class library from my ASP.NET Core MVC Project.  There were two issues that I ran into that I will cover in this post.  First is actually getting the MVC project to recognize the views in the class library.  Second was having Rider or Resharper in Visual Studio, understand where the views were located. Microsoft.NET.Sdk.Razor In .NET Core 2.1 SDK (or presumably later) there is now a Microsoft.NET.Sdk.Razor MSBuild SDK. Standardizes the experience around building, packaging, and publishing projects… Read More »Using ASP.NET Core Razor Views from a Class Library

Roundup #8

Here are the things that caught my eye this week.  I’d love to hear what you found most interesting this week.  Let me know in the comments or on Twitter. ASP.NET Core 2.2 Roadmap We are currently planning to have 3 previews before RTM: August – Preview 1 September – Preview 2 October – Preview 3 Before End-of-year – RTM As with our previous roadmap posts this is what we intend right now, but it’s subject to change as we continue development. Link: https://github.com/aspnet/Announcements/issues/307   Windows Command-Line: The Evolution of the Windows Command-Line Welcome to the second post in this “Windows… Read More »Roundup #8

How to Create Health Checks in ASP.NET Core

If you’re using a load balancer in front of your ASP.NET Core application you will need to provide it a route where it can verify that your application is still running.  Here’s an overview of how you can implement implement Health Checks in ASP.NET Core. Health Checks in ASP.NET Core If you’re using ASP.NET Core MVC, you might first think to just create a controller and action and provide that route as the health check for your load balancer. However there are alternative ways to accomplish this with middleware. Basic Middleware At the very basic level, we can create a… Read More »How to Create Health Checks in ASP.NET Core