Visual Studio 2008 Debug is launching my .NET WPF app with old source files
This started happening randomly yesterday.
When I press F5 to test my project, an old build of the program (circa yesterday afternoon) launches. No changes (and I've tried in a few different files) are reflected in the project.
However, and this is开发者_StackOverflow truly perplexing, if I go to Build --> Build from the Menu bar, the output .exe in the /bin/release/ directory DOES include all the recent changes.
What could possibly be causing this?
* Update*
To be more specific, changes to my .vb files are being reflected, but changes in my XAML documents are not.
Randomly, and I'm not sure how, I ended up with a copy of the OBJ folder in a subfolder of my project (called "Misc", here I was keeping misc. files)
I deleted that, and now it's working fine. I haven't the faintest idea why this would fix the issue, but it's the only thing I changed in all this exploration.
What do you see in the Modules Window (under debugger, go to menu Debug -> Windows -> Modules)? It looks like it loads improper modules, maybe cached somewhere?
I heard about similar problem from my friend, he claimed it was caused by Resharper... Just in case you have it installed..
精彩评论