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