Lately this stupid Visual studio 2005 have made this little problem.
When i change my code and tries to run it, it doesn't recompile the new added code but just keeps using the old one! When i then tries to pause it when it displays a messagebox ( wich i have deleted from the code) it stop and says that there is no source code to display.
I have tried the rebuild function but dont help. Also tried shutting the studio down and open it again, but that dont help either.
Anybody have a solution

VS doesn't recompile..
brettromero
The one thing that is really weird about this, is that any change i make in my program wont be in the debug program. Ive tried changing the backcolor, adding lots of buttons and writting strange text in the editor (like jhvgsjkhvg) and it doesn't stop and tell me there is an error or makes any of the changes ive made. What it actually means is that i cant try out any code that ive written or changes that ive made.
Every time i hit the run button it runs the program i made yesterday. But where is this program stored I could try deleting it then.
Ive tried deleting the debug folder to make vs make a new debug exe file, but its still the same old build.
Where is the old build stored
Steve Jensen
How stupid is this:
I try deleting the code in the button, where it doesn't recompile, and afterwards delete the entire button from the designer.
When i press the debug button its al there in the compiled program again.
How the heck can i get rid of this code and this button
laboremus
Well, I guess the first step is to recognise that people are using this IDE all over the world, the problem is in how you're using it, not the IDE itself.
What happens if you hit CTRL-B and then view the output and the error list The top of the error list gives you an error count, they won't show in the list tho if you've clicked the error header, click it again to toggle if it says you have errors but is not showing them.
Lili Gao
Hm.. This was strange
In my projects folder there was a folder called obj
In this folder there was a debug folder.
When i deleted the exe file in this folder and pressed the run button, all changes and code was compiled into the file and my program is doing what its supposed to..
And now if i insert a button its recompiled at once! Mayby there was something wrong with the exe file in this folder. I dont know...
Paulson Abraham
My VS does the same thing, and it tells me to go to the error tab to see what errors caused the compile to fail, it seems to respond to a broken build by running the previous version. I assume there's a setting for this, but it happens rarely enough that I've not bothered to find it.