❔ Visual Studio 2022, Hot Reload Not Recognizing changes in code.
An issue with Visual Studio 2022 Hot Reload not recognizing changes in code, i've been using Google for couple of days now but still no good results.
I'm trying to edit (edit & continue) without having to compile everything and restart the application.
34 Replies
Not every change is possible without recompiling afaik
Sometimes good workaround can be moving element around, like
HorizontalOptions
, just to force runtime to repaint itI know for a fact that the changes Im trying to make can be possible with hot reload. They're pretty basic.
The hot reload cant recognize changes in code for some reason
Can you drop some snippet?
Are you using MAUI, WPF?
Pretty sure im not, im editing the source code of an application i got from GitHub.
I'll send a pic of the error
Attaching a running program to the solution, made //edit, saved it, clicked hot reload and got greeted with that message in red
And if you make breakpoint in that place,
szMode
will get changed value or the previous one?Nothing gets changed, like nothing
as if i never made an edit
is the application in debug config?
Or Release?
release
this might be the case
omg dont tell me switching that to debug will just fix it
probably yes
should i keep it at x86?
release optimizes code, so some changes won't be applied (if you ask me - none would be)
if 32bit suits you, sure
You said you are attaching to already running app - if you are still developing something, don't use release configuration
If its possible, run app from VS (or your another fav IDE)