Blazor server app slow build time
- Dominant language
- C#
- Stars
- 20.7k
- Forks
- 4.3k
- PR merge metrics
- PR metrics pending
Description
Hi,
As the title suggests we are working on a Blazor Server App with .net 8 and we are seeing quite slow build times. We are migrating a legacy application (.net framework 4.8) to Blazor and its expected that the project will hit close to (if not exceed) 5000 components (both routable and non-routable).
At the moment we are seeing local build times of around 1 minute 30 seconds with around 1200 components (Routable and non), I cannot make the code for this available as it contains company IP so I have prepared a sample application which can be found at [Repo](https://github.com/kuldipmis/SlowBlazorBuildTime) the average build time of this application is around 20 - 30 seconds. We have also prepared both bin and comp logs for the build process to help diagnose what the potential issue could be.
I also wanted to mention that we have a dependency on Telerik UI controls for Blazor, just by adding this package to the project (_not using any of the controls_) inflates the build time by an average of between 30% - 40%
Any insight into why the process is taking so long would be useful as the more we migrate into the Blazor re-write the slower its going to get.
As a side note hot reload is also an issue, it doesn't seem to be working for the new project
Contributor guide
Assessment
This issue has not been assessed yet.