dotnet / razor

Compiler and tooling experience for Razor ASP.NET Core apps in Visual Studio, Visual Studio for Mac, and VS Code.
https://asp.net
MIT License
506 stars 196 forks source link

Hot Reload Takes Nearly 45 Seconds to Update #7626

Open vsfeedback opened 3 years ago

vsfeedback commented 3 years ago

This issue has been moved from a ticket on Developer Community.


[severity:It's more difficult to complete my work] Please see attached. Hot Reload now works for me, but takes forever to update, nearly 45 seconds to be more precise.


Original Comments

Feedback Bot on 11/11/2021, 03:48 PM:

This issue is currently being investigated. Our team will get back to you if either more information is needed, a workaround is available, or the issue is resolved.


Original Solutions

(no solutions)

chsienki commented 7 months ago

@TiagoAntunesALS Hmm, this shouldn't be affecting cs files at all. @tmat Any thoughts on the above?

tmat commented 7 months ago

@TiagoAntunesALS

have the same issue.

You mean it's slow to apply updates?

The issue affects Hot Reload performance in projects containing .razor files regardless of which file you're modifying (.cs/.razor).

TiagoAntunesALS commented 7 months ago

@tmat Yes, slow applying changes, by .razor files are .cshtml also included? We only have those

tmat commented 7 months ago

Yes.

Mike-E-angelo commented 3 months ago

Sits through another 2-minute build due to Razor libraries

Are we ever going to have this feature? 😁😇

chsienki commented 3 months ago

@Mike-E-angelo We're still working on it, but it requires a pretty fundamental reworking of the Razor tooling architecture. That's an ongoing project right now. Any PRs you see mentioning Cohosting are part of that effort, and we have a pretty substantial developer investment in delivering that right now.

Nothing to try out yet, but we will absolutely ping you as soon as there is :)

Mike-E-angelo commented 3 months ago

Love to see that effort @chsienki and of course, I cannot help with my snarky commentary from time to time to pass+mark the time. Worth noting that I will have invested five years of my life into Blazor once October hits. 🤯 I am not going anywhere. 👍