aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

Use vdir environment variable when injecting browser refresh script

Open pranavkm opened this issue 3 years ago • 9 comments

Context: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1437972?src=WorkItemMention&src-action=artifact_link

Environment variable to use: ASPNETCORE_AUTO_RELOAD_VDIR

pranavkm avatar Jan 25 '22 22:01 pranavkm

Thanks for contacting us.

We're moving this issue to the .NET 7 Planning milestone for future evaluation / consideration. We would like to keep this around to collect more feedback, which can help us with prioritizing this work. We will re-evaluate this issue, during our next planning meeting(s). If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues. To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.

ghost avatar Jan 31 '22 17:01 ghost

Hi, any update on this issue? We're having several blazor apps and development is a bit annoying because of these missing features. thanks

robi26 avatar Oct 25 '22 08:10 robi26

I'm also experiencing this issue :/

javier01123 avatar Jan 27 '23 20:01 javier01123

All of our applications are built using virtual directories and this is a very annoying issue. Are there any workarounds for this?

raynebair avatar Mar 16 '23 15:03 raynebair

@mkArtakMSFT any news on this item? This is really impacting our dev cycle. Thanks

PS: if there is a workaround, please let me know.

robi26 avatar Apr 21 '23 06:04 robi26

any update?

robi26 avatar Jul 04 '23 10:07 robi26

Thanks for contacting us.

We're moving this issue to the .NET 9 Planning milestone for future evaluation / consideration. We would like to keep this around to collect more feedback, which can help us with prioritizing this work. We will re-evaluate this issue, during our next planning meeting(s). If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues. To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.

ghost avatar Oct 06 '23 21:10 ghost

When launching Blazor Server with IISExpress with an app path in AppURL, such as http://localhost:5279/apppath, the browser refresh script is inject the "/_framework/aspnetcore-browser-refresh.js" into Blazor WebAssembly Client (index.html) and fail to load. However, I found it at "/apppath/_framework/aspnetcore-browser-refresh.js". So, if the injection remove /, everything may be work well.

I have try to disable hot reload by adding "hotReloadEnabled": false in launchSettings.json. No injection of aspnetcore-browser-refresh.js and no error. However, when I change "hotReloadEnabled": true, no injection of aspnetcore-browser-refresh.js but error on the /_framework/blazor-hotreload.js file not found.

I think, this is a bug of injection at the root path. May be no need to set vdir environment.

lsomchai avatar Nov 05 '23 15:11 lsomchai

We experience the same issue, and it's really annoying, I hope it will be resolved soon.

valosharp avatar Aug 27 '24 16:08 valosharp

please fix this. We have dozens of blazor apps in virtual directories. Thanks

robi26 avatar Jun 30 '25 13:06 robi26

Wow this has been broken for a long time

ghosttie avatar Sep 22 '25 18:09 ghosttie

I hope this will be fixed, has been planned before but was then moved...

robi26 avatar Sep 22 '25 18:09 robi26

Still not fixed

robi26 avatar Nov 17 '25 06:11 robi26