ZaneK
ZaneK

Reputation: 351

Hot reload / Apply Code changes button not applying changes or refreshing in Visual Studio 2019

I'm using Visual Studio 2019 for my React project with a C# backend

enter image description here

I keep pressing the red (flame like) apply code changes button in visual studio 2019 to try to update my project.

(I am trying to update a basic text change) and nothing happens at all

I even try refreshing the window manually and my changes aren't recorded until I close the front end and do npm start again, then re-run IIS Express again.

Why would something like this happen?

Upvotes: 0

Views: 2865

Answers (1)

Lex Li
Lex Li

Reputation: 63289

Microsoft made it very clear that Hot Reload in VS2019 is not the best,

https://devblogs.microsoft.com/dotnet/introducing-net-hot-reload/#best-in-visual-studio-2022-net-6

So if you don't plan to migrate to VS2022 and .NET 6, you won't get the desired results. You can send them feedbacks though, and see if they ever come back to work on VS2019 side.

Upvotes: 2

Related Questions