C
C#12mo ago
alter

❔ 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
Ikarmus
Ikarmus12mo ago
Not every change is possible without recompiling afaik Sometimes good workaround can be moving element around, like HorizontalOptions, just to force runtime to repaint it
alter
alter12mo ago
I 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
Ikarmus
Ikarmus12mo ago
Can you drop some snippet? Are you using MAUI, WPF?
alter
alter12mo ago
Pretty sure im not, im editing the source code of an application i got from GitHub. I'll send a pic of the error
alter
alter12mo ago
No description
alter
alter12mo ago
Attaching a running program to the solution, made //edit, saved it, clicked hot reload and got greeted with that message in red
Ikarmus
Ikarmus12mo ago
And if you make breakpoint in that place, szMode will get changed value or the previous one?
alter
alter12mo ago
Nothing gets changed, like nothing as if i never made an edit
Ikarmus
Ikarmus12mo ago
is the application in debug config? Or Release?
alter
alter12mo ago
release
Ikarmus
Ikarmus12mo ago
this might be the case
alter
alter12mo ago
omg dont tell me switching that to debug will just fix it
Ikarmus
Ikarmus12mo ago
probably yes
alter
alter12mo ago
should i keep it at x86?
Ikarmus
Ikarmus12mo ago
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)
Want results from more Discord servers?
Add your server