Closed DavidStania closed 3 weeks ago
We triaged this issue and set the milestone according to the priority we think is appropriate (see the docs on how we triage and prioritize issues).
This indicates when the core team may start working on it. However, if you'd like to contribute, we'd warmly welcome you to do that anytime. See our guide on contributions here.
Could you please check with the latest main
? This is what I see there, it works for me:
https://github.com/user-attachments/assets/ad126189-dc79-4269-bc98-2c0d38d4ece3
Note that apart from saving the cshtml file, I didn't do anything, the browser reloaded itself.
I have tested it with the latest version. Exactly the same result.
I noticed that when I executed the dotnet watch
command, the following message appeared: "Skipping configuring browser-refresh middleware since the target framework version is not supported. For more information see 'https://aka.ms/dotnet/watch/unsupported-tfm'.
"
So I had to specify the command with the framework dotnet watch --framework net8.0
. The browser is also reloaded. As can be seen in your video. But without any changes.
Just to confirm, you did the same as I did, with the latest main, with the latest VS, and in contrast to the video, don't seem changes to a cshtml file appear?
I can confirm. 100% the same like you did.
https://github.com/user-attachments/assets/d6ce983a-d5bd-4370-b270-4caecba598c9
Hmm. This looks like more of an issue with Razor Runtime Compilation rather than Hot Reload.
A couple of things:
This line is not hit cause 'refs' folder not exists! But I don't know why. There is only a 'ref' folder here 'G:_Applications\repos\OrchardCore\src\OrchardCore.Cms.Web\obj\Debug\net8.0\ref'
If I create the folder manually, it remains empty during debugging and I only get an error page.
Hmm. What happens if you turn Hot Reload off under Options -> Debugging -> General?
Strange!
Hot reload is disabled in global settings
And also in startprofile
But if changes exists:
I don't know what's happening.
I told you. Very strange! And this is happens on 4 independent development machines.
Same issue: #15946
Indeed, closing as a duplicate.
Hello everyone, I have a problem with HotReload in VS2022 17.10.5 (current). No changes are applied. The application has to be restarted again and again to apply changes.
I have made several attempts:
I have recorded a video to demonstrate this. I currently have the problem on 4 independent computers.
I would be grateful for any advice!