-
Notifications
You must be signed in to change notification settings - Fork 1.1k
"hotReloadEnabled": false does not work #27182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
As a workaround, if you don't want hot reload, you may simply run |
Tagging subscribers to this area: @tommcdon Issue DetailsDescriptionEven with Reproduction Steps
Expected behaviorCode rebuilds Actual behaviorHot reload Regression?No response Known WorkaroundsNo response ConfigurationNo response Other informationNo response
|
According to the document at doc: aspnetcore-7.0#disable-hot-reload, the setting Here is the demo: hot_reload_not_setting_not_work.mp4Here is my dotnet info:
|
Just tested this on The |
I had this problem again just now (using VS2022 LTSC 17.8.10), and it wasn't working after I copied-and-pasted the line, but then VS flagged the JSON for not using a quoted property name, which was a headscratcher for a moment... ...if you look very closely you can see it's using fancy quotes ( Spot the difference:
(I'm on a 192dpi 2x display, so because the pixel-grid is finer it means typeface hinting doesn't make the difference between the quote chars immediately obvious - if you're on a 96dpi display or using a different font then I suppose it might be more obvious (or perhaps even less obvious?) After fixing that it seemed to correctly disable the whole script-injection feature - but I'm still left with a bad taste in my mouth: surely in a web project the user's generated HTML markup is sacrosanct - I'm fine with VS+Debugging tools injecting helper scripts, but doing it by-default and needing to flip several other switches too gives me the impression I'll to do this all-over-again in some future VS version (and besides, if I wanted gratuitous script injections I'd be using WebForms...) ...so with that in mind, I'd like to make 2 suggestions:
|
Encountered the same issue running .NET 9.0.101. Setting |
Description
Even with
"hotReloadEnabled": false
inlaunchSettings.json
, hot reload still seems to activate which is particularly annoying when using ASP.NET and EF and AutoMapper where things that get configured at the start can recompile and hot reload, but the effect doesn't take effect - I have wasted many hours since upgrading to v6 with the code I am running not actually being the code I have written :-(Reproduction Steps
"hotReloadEnabled": false
inlaunchSettings.json
dotnet watch run
Expected behavior
Code rebuilds
Actual behavior
Hot reload
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: