adoconnection / RazorEngineCore

.NET6 Razor Template Engine
MIT License
565 stars 84 forks source link

Compile templates at build-time #124

Open hughesjs opened 1 year ago

hughesjs commented 1 year ago

It seems as though compiling the templates AOT is supported and that they can be saved to and loaded from disk.

Is there any way to do this automatically at build time?

adoconnection commented 1 year ago

Hi, im not sure VS can handle it by its own like it does with asp.net cshtml files. I would go with one of these:

jr01 commented 1 year ago

Another reference for implementing: MiniRazor.CodeGen