Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compiling Issue. C#

Tags:

c#

Got an issue.

When I recompile my code, non of the changes take effect. I've tried to add MessageBoxes, change labels, the color of text .. everything. When I recompile nothing changes, it seems to load old code.

Any idea what's going on? Is there a cache or anything?

like image 880
James Jeffery Avatar asked Jun 12 '26 02:06

James Jeffery


2 Answers

I've had this issue when I had a GAC'd version of the same DLL that I tried to debug. During load, the runtime would pick up the version from the GAC rather than the one I just compiled.

like image 83
erikkallen Avatar answered Jun 13 '26 16:06

erikkallen


Are you sure you are running the same code you changed? Try single steppings through the app rather than run.

like image 43
Jim Anderson Avatar answered Jun 13 '26 16:06

Jim Anderson