If both project Alpha
and project Beta
are C# projects, we can set that Beta
depends on Alpha
and this results to following build order: 1) Alpha
; 2) Beta
If project Alpha
is C++ project, we cannot add reference from project Alpha
to Beta
because Visual Studio 2010 does not allow this. Actually we can hack csproj
file with notepad, but it doesn't help. Bu we can right click on solution, choose Project Dependencies
and say that Beta
depends on Alpha
.
Problem: MSBuild does not honor dependencies set in sln
file and builds projects in wrong order - 1) Beta
; 2) Alpha
. Note, that Visual Studio honors build order.
How we can set build order for MSBuild
between C#
and C++
projects within same solution?