I want to share the layout (Header, Navigation and Footer Razor views) across multiple ASP.NET MVC projects. How can I do that?
Can I create a custom NuGet package t
Three approaches:
See Compile your ASP.NET MVC Razor views into a separate DLL for how you do option 2.
For option 3, see Creating and Publishing a Package.
In fact, I think this is the original article on how to compile Razor views: Precompile your MVC Razor views using RazorGenerator