Unstable updates. Now hot reload and window position stopped working

Hedelin Staffan 46 Reputation points
2022-12-05T12:46:13.203+00:00

Updated VS 2022 to 17.4.2 and 2 things stopped working. I work with core 6 web projects (both razor pages and mvc in multiple different projects and solutions).

  1. Hot reload. When I do code change, it says in bottom left corner "No code changes were found". Doesn't matter if I change c# code, javascript, html, e.t.c. It never gets picked up, hence I have to stop and re-run compiler every time.
  2. Browser window position gets reset every time I stop and start project (which I now have to do a lot because of no 1).

Both of these was working in previous version 17.2.x. I understand VS is a very complex product, but it is very annoying that features stop working when updating. This is far from the first time this happened after upgrading to 2022. Almost with every version update there is something new that is broken. But these 2 things really ruin my day.

What I have tried.
Restart computer
Uncheck and recheck "Hot reload on file save"
Tried different browsers (Edge, Chrome)

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | Visual Studio | Debugging
{count} votes

1 answer

Sort by: Most helpful
  1. Hedelin Staffan 46 Reputation points
    2022-12-13T07:56:43.59+00:00

    I can confirm that hot reload workes sometimes, but not always. And sometimes the code change is in fact loaded in background but no visual signal is given also.

    Previously, the web page was reloading automatically and the changes had taken effect. Very clear to me, the user that the new code is in use (since of the reload). Now the page is reloading sometimes, but certainly not always. I would say it's about 80%-20% where reload is 20%. Of those remaining 80% most of the cases, the code change has in fact been reloaded in the background with no reload. But I can't see somewhere that. I have to refresh the page my self to verify. And in some cases, even if I refresh, the code is still the old version and I have to stop the debugger and start again.

    When it comes to window position problem, I know what the problem is. The thing that has changed in this version is that the instance of Edge (that Visual Studio starts when debugging) now stays next to any other open instances of Edge and hence it follows the same position as the other Edge windows.
    This was NOT the case before.
    I have 3 screens and always Edge open on the right screen, and previously the instance of Edge started by VS was it's own instance (also a new icon in the taskbar to the far right) had it's own life and stayed at the left screen. Now, in this new version, all Edge windows want to stay together so it doesn't matter if I move the newly opened windows to my left screen because next time VS open Edge, it will go to the right again since that's were it's friend is.

    Can this be an option or something?
    Thx


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.