Why does page not update after refresh when .cshtml changes

后端 未结 4 976
礼貌的吻别
礼貌的吻别 2020-12-08 10:09

I am trying out Blazor and i do not understand why when changing a component after refreshing the browser page it does not update ? Shouldn\'t the

4条回答
  •  再見小時候
    2020-12-08 10:35

    You should add or enable runtime compilation in razor pages,

    Install-Package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation -Version 3.1.6

    After installing set the startup file as ,

     services.AddMvc().AddRazorRuntimeCompilation();
    

提交回复
热议问题