Compile Razor views into a single assembly

What is the least invasive way to compile .cshtml into one assembly? By “least invasive” I mean something that doesn't require merging with custom tools by setting esoteric values ​​in .cshtml files and things like that?

I tried RazorGenerator.Mvc/.MsBuild , but it will not compile. RazorSingleFileGenerator requires interaction with custom tools, which I would like to avoid.

As a bonus point: can this magic tool, if one exists, integrate easily into the MSBuild pipeline?

+8
asp.net-mvc razor msbuild
source share
1 answer

Check out this article , this is a step-by-step guide to using the Razor Generator

+1
source share

All Articles