James Jeffery
James Jeffery

Reputation: 12579

Compiling Issue. 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?

Upvotes: 3

Views: 167

Answers (8)

Evgeny Gavrin
Evgeny Gavrin

Reputation: 7825

Try to create new project.

Upvotes: 0

Bill Bingham
Bill Bingham

Reputation: 244

And very rarely, delete the .suo file associated with the project.. Which will force rebuilding..

Upvotes: 0

wasker
wasker

Reputation: 1999

Build -> Rebuild Solution. This will do clean up and build for your.

Upvotes: 0

George Johnston
George Johnston

Reputation: 32258

Open up your application directory, delete the debug folder.

Upvotes: 1

erikkallen
erikkallen

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

Jakob Christensen
Jakob Christensen

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

Jim Anderson
Jim Anderson

Reputation: 3622

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

Upvotes: 1

Joe
Joe

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

Related Questions