Open Closed

VS 2022 Hot reload not working, IDE slow and crashing #2375


User avatar
0
Leonardo.Willrich created
  • 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)
  • User Avatar
    1
    maliming created
    Support Team Fullstack Developer

    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

  • User Avatar
    0
    Leonardo.Willrich created

    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.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    This option works for the MVC app. add it to your boot module(MyProjectNameWebModule).

  • User Avatar
    0
    Leonardo.Willrich created

    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.

  • User Avatar
    2
    maliming created
    Support Team Fullstack Developer

    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.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09