Bruno B. de Souza
Bruno B. de Souza
What about the `EmbedRazorGenerateSources` property from the Razor SDK? According to the [documentation](https://docs.microsoft.com/pt-br/aspnet/core/razor-pages/sdk): > When true, adds RazorGenerate ( .cshtml ) items as embedded files to the generated Razor assembly....
I've tried to create a sample here, but without success: https://github.com/knuxbbs/RazorLightSample
Well, I got it with the help of @maxbanas in https://github.com/toddams/RazorLight/issues/378#issuecomment-732994641. But do you think there should an example with cshtml files in the samples folder? If not, you can...
@maxbanas I've tried your solution, but the problem persists. I still got "TemplateNotFoundException" when I try to read a cshtml file from a Razor Class Library. This is my sample...
> > > @karoberts I think your approach has the downside of not getting any bugfixes for those libraries or using new C# language features. Getting rid of `Microsoft.AspNetCore.App` is...
Off topic, but [compile templates at build time](https://github.com/Tyrrrz/MiniRazor#compile-templates-at-build-time) is a feature that RazorLight should have.
A documentation page like this would be very good: https://antaris.github.io/RazorEngine/AboutRazor.html
This library implements this with Newtonsoft.Json: https://github.com/Viostream/nhibernate-json Maybe we could take an aproach with System.Text.Json, which is also NETStandard 2.0