views:

228

answers:

5

I'm working on a personal project in Visual C++ 2008 and for some reason "Build Solution" doesn't work anymore...the code changes aren't registered unless I use "Rebuild Solution".

Any ideas as to why this is happening?

I've tried google, but found nothing useful...

A: 

Try checking the timestamps on your files. Are they stamped at some point in the past? That would cause this particular problem to occur.

JaredPar
All the timestamps are ok...
+2  A: 

Try "Clean Solution" - that will delete any output files that might have dodgy timestamps on them.

("Rebuild" ought to imply "Clean", but you never know.)

RichieHindle
Clean Solution works, but the next time I do a 'build' it still doesn't work.I have to either use clean solution or rebuild solution every time.
+2  A: 

Did you check to ensure that all of the projrcts are set to compile in the configuration manager? (Right click on the SLN in the Solution Explorer and choose "Configuration Manager". Also, I ran across this once on a VS2008 solution and "fixed" it by converting it to a .Net 2.0 solution and back to a 3.5 solution.

David Stratton
All the projects are set to compile. How did you convert it to a .Net 2.0 solution?
A: 

Hi All,

I am having the same problem, ""Build Solution" doesn't work anymore...the code changes aren't registered unless I use "Rebuild Solution".

I cleaned the project then build/execute it, it worked but when I do some changes than I build and execute again the new changes are not reflected. I checked the timestamp also, no problem.

Have anybody solved this issue with VC++ 2008

Thanks

Hakim
A: 

Pls. check if all the projects are loaded (Managed/unmanaged) in the solutions. In my application code, a reference to one of the C++ projects was missing. Re-referenced and it worked for me. Try this.

Balachandran Srinivasan