Bennyboy1973
Bennyboy1973

Reputation: 4208

Improving Blazor rebuild speeds

When making changes to my Blazor server project, which is quite massive now, the rebuild takes approximately 30 seconds. In some cases, this is serving as an impediment to productivity. Hot reload is, so far as I can tell, almost completely useless in my case.

If I break this project into smaller ones, would this then reduce the rebuild times, assuming I only change one of the sub projects?

If this is advisable, how would I go about coordinating those sub-projects into a single functioning Blazor project, with shared services and so on?

Upvotes: 6

Views: 719

Answers (1)

Bennyboy1973
Bennyboy1973

Reputation: 4208

The answer to this, by the way, is quite simple. You can build a Razor class library project.

My current process is to build and edit new components in the main project, then move them to the library when I won't want to work on them for a while.

Upvotes: 1

Related Questions