I have C ++ - a solution with 4 projects and 24 configurations. Projects cryptest
, cryptlib
, cryptdll
and dlltest
. And then there is a partial cross product of x86, x64, debug, release, DLL export and DLL import.
There is a not so obvious dependency that I cannot express in the user interface or by manually editing project files. Addiction is everything . DLL related projects are dependent on . cryptest, Release Win32
Visual Studio allows us to create all configurations by choosing the Build menu and then Batch Build ... → Select All → Build . When I run Build All , the first configuration built is:
------ Build started: Project: cryptlib, Configuration: DLL-Import Debug x64 ------
Performing Custom Build Step
Assembling: c:\Documents and Settings\cryptopp-5.6.3\x64masm.asm
Performing Custom Build Step
Compiling...
pch.cpp
...
As seen above, the mechanism chooses as its first choice. I want the following order: cryptlib, DLL-Import Debug x64
cryptlib, Release Win32
cryptest, Release Win32
- Do not worry about the remaining 22 ....
The problem is that I cannot tell Visual Studio that all Win32 and x64 DLL projects are Win32 dependent cryptest
.
How can I control the order of Batch Build -> Build All ?
Currently, I have to run Build All twice . The first ends:
The second launch ends with:
GlobalSection(ProjectConfigurationPlatforms)
( , ), , . 24 Build All Visual Studio 2005, Build All (, ) Visual Studio 2008 .
( , ), , :
1>------ Skipped Build: Project: cryptlib ------
1>
2>------ Skipped Build: Project: cryptest ------
2>
- . , Visual Studio .
: Visual Studio < - → Startup . , , , .
, Visual Studio 2005 ( ), Visual Studio 2010 ( ).
, VS2010 . , , , VS2010 .