3

I have a 100+ source file VC++ project in Visual Studio 2005. A lot of those files have custom build steps. There is something that is not updated when I build. Every time I hit the start debug button it prompts me with a "This project is out of date:" dialog and asks if I want to build it. I choose yes, but nothing compiles. I suppose I could take out the source files one by one util I find the problem. There should be an easier way.

Every make equivalent I have used had command line options that would display the out of date target(s) and the step(s) used to build it. I would use this to solve the problem by building normally, then building with the verbose option. The problem file would be the only one built!

I would expect there is an equivalent setting in Visual Studio that I have not found yet. (Tools->options->Projects and Solutions->Build and Run->MsBuild output verbosity) does not give enough information to identify the problem. How do I make VS2005 tell me exactly what it is trying to build?

abatishchev
  • 98,240
  • 88
  • 296
  • 433
Rodney Schuler
  • 2,158
  • 4
  • 23
  • 34

3 Answers3

2

Have you tried building it from command line using VCBuild ? http://msdn.microsoft.com/en-US/library/cz553aa1(v=VS.80).aspx

codelion
  • 1,056
  • 1
  • 11
  • 17
2

I've done this in the past using the technique outlined here:

http://blogs.msdn.com/b/vsproject/archive/2009/07/21/enable-c-project-system-logging.aspx

Hope this helps!

Scott
  • 766
  • 7
  • 20
1

It shouldn't take that long to compare the dates of the source files to the corresponding OBJ files.

It sounds to me like you have a file that is not correctly configured to build. Do you have files other than C++ files? Assembler, help files, etc?

Jonathan Wood
  • 65,341
  • 71
  • 269
  • 466
  • Yes, there are lots of custom build steps in the project. Some code generation. Some data/help files. I am trying to figure out which one (of the many) is not correctly configured. – Rodney Schuler Feb 03 '11 at 18:07
  • Manually compare the dates of the uncompiled vs. compiled files. Unless you have hundreds of source files, this shouldn't be that big of a task. Or go through and click Build on each source file and see what happens. And thoroughly check your error messages and logs. It's hard to be much more specific without working with your project. – Jonathan Wood Feb 03 '11 at 18:10