In a previous question I thought this was a sub-project problem but its much simpler than that.
Basically if you reference a C# project from a C++ one, when the sln2005 build runner comes to build the C++ project it can't find the C# project and so the build fails.
Here is the vcproj file for the C++ project:
AssemblyName="System, Version=184.108.40.206, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
AssemblyName="System.Data, Version=220.127.116.11, PublicKeyToken=b77a5c561934e089, processorArchitecture=x86"
AssemblyName="System.Xml, Version=18.104.22.168, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
The RelativePathToProject is relative to the solution not to the vcproj so whilst it can be built in VS from the solution, when attempting the same thing using the build runner the reference can't be resolved.
Has anybody got any ideas as to how to solve this? If I can't fix it I'm going to have to give up on the whole TeamCity project. Help!!