I have an unmanaged C++ project, the output of which I need to copy to the output folder of a .NET project.
Visual Studio 2010 won't let me add the C++ project as a project reference as it isn't creating a managed assembly.
I've tried adding the following to the .csproj file manually but it doesn't seem to be working (eg. when running msbuild, the .NET project is being built first)
<ItemGroup>
<ProjectReference Include="pathtoproject\unmanaged.vcxproj">
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
<Private>False</Private>
</ProjectReference>
</ItemGroup>
How can I enforce this build dependency to work with a command-line build?