After the upgrade .net core 3.x mvc project commissioning editor view status code can not live preview

https://stackoverflow.com/a/58126955

 

It simply needs to be installed on nugetMicrosoft.AspNetCore.Mvc.Razor.RuntimeCompilation组件,然后再在Service中注册下  

services.AddRazorPages().AddRazorRuntimeCompilation();

 

这样开启Razor运行时编译,就可以了

 

Guess you like

Origin www.cnblogs.com/yesicoo/p/12008427.html