- ABP Framework version: v5.0.0
- UI type: Blazor
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): yes / no No
- Exception message and stack trace:
- Steps to reproduce the issue:"
Hi,
After updating my solution to ABP.IO version 5.0.0 and installing VS 2022 with the new .NET Core 6, I'm experiencing constant issues with hot reload, that hasn't worked so far, the IDE is very slow, especially when trying to access IntelliSense, and it has been crashing a lot. I can see that sometimes the processor is around 85% or more and VS 2022 is using more than 7GB of RAM.
I saw the hot reload working on some pages, but, it doesn't work on most of the pages. It takes longer to tell me that I need to restart the application, then it will build the solution and reload the web browser. My productivity has been decreased a lot after upgrading my environment.
Is anyone else experiencing those kinds of issues as well? What I can do to improve the performance and to get the Hot Reload working?
Kind regards, Leonardo Willrich.
5 Answer(s)
-
1
hi
We add an option to disable the
RazorRuntimeCompilation
(ABP 5.0.1)public override void PreConfigureServices(ServiceConfigurationContext context) { PreConfigure<AbpAspNetCoreMvcOptions>(options => { options.EnableRazorRuntimeCompilationOnDevelopment = false; }); }
https://github.com/abpframework/abp/pull/10947/files
-
0
Hi,
Which module I'm supposed to add to this configuration? In the Blazor module it doesn't recognize the class AbpAspNetCoreMvcOptions, but, in the HttpApiHost module, it exists.
-
0
This option works for the MVC app. add it to your boot module(
MyProjectNameWebModule
). -
0
My application is Blazor WASM, not a MVC one. I've added this option to HttpApiHost project which is a MVC project, but, haven't seen any change. I've updated to 5.0.1 as well, it seems to be slightly better, the hot reload is working, however, it is delaying updating the UI.
-
2
I've added this option to HttpApiHost project which is a MVC project,
No need to do this.
We upgrade the Blazorise to the latest. You can try after 5.0.2 is released.