2

I'm having a rather weird problem with Visual Studio 2012 lately:

  • Project A (C++ DLL) references project B (C++ static lib). No CLR.
  • Project A is set as my startup project (it has a debug command line set).
  • After changing a file in project B and hitting CTRL+F5, VS2012 doesn't build project A before launching it. It does build project B!

Research steps I've already taken:

  • After changing a file in project C, which is not referenced by either A or B, CTRL+F5 builds neither A nor B. This is expected.
  • After changing a file in project A itself, CTRL+F5 builds A. This is expected.
  • I've been able to reproduce this problem with project A' and dependency B'.
  • Configuration Manager: all projects are set to be built in my working configuration.
  • VS options:
    • "On Run, when projects are out of date:" = "Always build".
    • "Only build startup projects and dependencies on Run" is checked. Without it, it just build my entire huge solution when running project A, which is hardly what I want.

I should also note that we recently upgraded from Visual Studio 2010 (with which we did not have this problem).

I'm fresh out of ideas. Anyone?

4

1 回答 1

2

看来这是这些问题所描述的相同问题:

解决方案:任何 VS 项目的中间文件夹都不允许在 %TEMP% 或 %TMP% 下,也不能命名为“temp”(甚至可能包含子字符串“temp”?)。

于 2013-07-10T15:59:49.020 回答