Skip to content
Discussion options

You must be logged in to vote

Hey @gitPhate, Runtime compilation is not possible with this library unfortunately as it's not the main goal. Instead it is to render the views that are already precompiled as part of building/publishing your project.

In the README:

This library uses precompiled Razor views provided by the Razor SDK.

Before .NET 10, it was indeed possible to do runtime compilation using Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation nuget package (original purpose was to do hot reload during development) along with the Razor.Templating.Core package. But, Microsoft made the RuntimeCompilation package obsolete. You can read more about the announcement and the reason here. So, there's no officially supp…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gitPhate
Comment options

Answer selected by soundaranbu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants