VC++ Projects are not built properly

Hi all,
I am using TeamCity with a Visual Studio 2008 Solution containing several (native) C++ projects. I use the sln-Runner, Target is "Build" because I want to get faster results from TeamCity (Rebuild requires >10 minutes). When I modify some .cpp-file in one of the Console Application projects, this file is recompiled properly after check in. However, if I modify a .cpp-file in one of the Library projects (which are referenced by the Console Applications), these files are not recompiled. This can cause linker errors when linking the console applications. All projects are active in the selected build configuration. Also, if I open the .sln-File from the Build Agent's work directory in devenv and select "Build -> Build Solution", the modified files are recompiled.

So my question is: is there any difference between the way TeamCity runs the build and the way I run it manually? What can I do to make this work?

From the full build log, I can see, that the project is built (but nothing happens):
[Project "OrthoSlam.sln" (Build target(s)):] e:\Visual Studio 9.0\Common7\IDE\..\..\vc\vcpackages\vcbuild.exe F:\...\buildAgent\work\2cfe56275812741b\Auxiliary\Auxiliary.vcproj
[Project "OrthoSlam.sln" (Build target(s)):] e:\Visual Studio 9.0\Common7\IDE\..\..\vc\vcpackages\vcbuild.exe F:\...\buildAgent\work\2cfe56275812741b\NextLib\NextLib.vcproj "Release|Win32"

(I modified a file in Auxiliary.vcproj, but this seems not to be noticed.)

Details: "Clean all files before build" is not activated (same reason why I use Build and not Rebuild), and I am using VCS checkout mode "Automatically on Agent".

Any hints? Thanks a lot,
Philipp

2 comments

Does the behaviour change if you try using msbuild.exe to build (inceremntally) your solution? What TeamCity is doing is simply running msbuild.exe for your solution file.

0

it seems like the problem is gone, thanks anyway...

0

Please sign in to leave a comment.