Skip to content

Using deprecated RazorTemplateEngine.Initialize() to clear cache #64

Closed Answered by hallsbyra
hallsbyra asked this question in Q&A
Discussion options

You must be logged in to vote

Turned out the call to Initialize had nothing to do with enabling hot reload for me. So I don't use it anymore. Instead, to get hot reload working:

  • Install Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
  • Enable runtime compilation: builder.Services.AddRazorPages().AddRazorRuntimeCompilation()

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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
1 participant