I have a C ++ project in VS2010 and a C # project that this C ++ project project should consume (it uses it for p / invoke). I thought I could guarantee that the C ++ project was created before the C # project by editing the "project dependencies ..." in the solution, but this does not seem to have any effect, the assembly on my build server does not take this parameter into account ( I use TeamCity to download the MSBuild file, which creates the entire solution file)
I think this worked, something has changed since VS2010? Or should I declare the dependency in a different way?
SOLUTION: The trick was to manually edit the csproj file outside of VS2010 and add a section like this:
<ProjectReference Include="..\CobraLib\CobraLib.vcxproj">
<Project>{598506DA-91DA-4F25-948D-A14CB16ABEBA}</Project>
<Name>CobraLib</Name>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
This caused the build server to process my projects in the correct order. The only caveat is that VS2010 displays an error in the project link ("not a .NET project"), but otherwise everything works as I expected
source
share