views:

99

answers:

4

Ok so i change some code, re-build it and then, say for arguments sake i had a print statement outputting 'test2', well if i change it to 'test3' its still re-producing the old code 'test2'.

Ive deleted the debug folder and rebuilt but no good. Then randomly about 10 builds later it will catch up. Ive also closed VS2010 and then re-opened the project but that doesnt help.

What can i do as i need to see the changes asap?

ps it's definitely the correct file

EDIT: I've done clean and rebuild but it hasnt done anything EDIT: This is a .dll file which im modifying

A: 

can you do a rebuild instead / or do a clean first and build again.

VoodooChild
A: 

This is probably not the issue, but just in case - you might make sure the builds in-between actually succeeded. When you "Start Debugging" (F5), Visual Studio will allow you to run the last successful build if the current attempt fails with errors.

hemp
A: 

If you're building a DLL or the code you modified was part of a DLL Windows may have pre-loaded a stale version. I've been more than frustrated by that in the past working with VS2003 and VS2005 at work, here, and chose much less tame words than you. Sometimes a reboot is needed.

wheaties
I am doing a .dll file!!!!!Please explain, how do i solve this?!?!?! Thanks
Tom
You don't. Reboot.
wheaties
what executable is calling your dll? is this your exe or IIS? are you building debug or release?
GenEric35
+1  A: 
  • try putting a breakpoint on that line and step through the code,
  • make sure you're checking the right version(debug or release),
  • check that the executable calling the dll, isnt hanging,
  • if you're running this in IIS, do a iisreset in command line,
  • check the task manager to make sure the process running your executable isnt still running
GenEric35