Reputation: 12579
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?
Upvotes: 3
Views: 167
Reputation: 244
And very rarely, delete the .suo file associated with the project.. Which will force rebuilding..
Upvotes: 0
Reputation: 1999
Build -> Rebuild Solution. This will do clean up and build for your.
Upvotes: 0
Reputation: 32258
Open up your application directory, delete the debug folder.
Upvotes: 1
Reputation: 34391
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.
Upvotes: 2
Reputation: 14956
Try opening the "Modules" window (from the Debug->Windows menu). This will show you where the runtime is loading your assemblies from.
Upvotes: 0
Reputation: 3622
Are you sure you are running the same code you changed? Try single steppings through the app rather than run.
Upvotes: 1
Reputation: 47609
You may need to clean your build output. Right-click on the Solution (or Project) icon in the solution browser and select 'clean'.
Upvotes: 0