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?
asp.net-mvc razor msbuild
Anton Gogolev
source share