Why is Visual Studio 2008 always rebuilding my whole project?

前端 未结 18 1809
栀梦
栀梦 2021-02-05 18:22

I have a Visual Studio project with about 60 C++ source files. I can do a build, and it completes without errors. But if I immediately hit F7 again, it always re-compiles about

18条回答
  •  滥情空心
    2021-02-05 18:56

    Project Properties -> "C/C++" -> "Output Files" -> "Program Database File Name" option should not be empty. Set this option by selecting from drop-down box . The option will be set like this: $(IntDir)\vc90.pdb. And line ProgramDataBaseFileName="" will be removed from vcproj file.

    Then only changed *.cpp files will be recompiled when you build the project or solution.

提交回复
热议问题