Create a dependency solution for building VS 2010 with hundreds of projects

We have several hundred visual studio project projects that I need to put together into a construction solution. We currently have a custom ruby ​​script that uses rake for this. But it is fragile and allows only a few visual studio macros ($ (TargetDir), $ (TargetName), etc.), as well as the rest. Plus, Ruby grammar annoys me like Perl: the wrong way.

So my question is: if you have a directory, is there a tool that will recursively find all .vcxproj and .csproj files and generate a solution file with dependencies? When I say “with addictions,” it means that some projects need to be built in front of others. I found several other posts here when the stack overflow pointed to a tool that generates solution files: but it does not create dependencies. Therefore, without dependencies, any tool for creating solutions is completely useless. Does anyone know something that will do this?

If not a solution file, does anyone know something that just emits a list of dependencies?

PS And before anyone asks: manually creating a solution file is out of the question. We just have too many project files.

+3
source share
2 answers

So my question is, given the directory, is there a tool that will recursively find all all .vcxproj and .csproj files and create a solution file with dependencies?

No.

What you ask is very reasonable; your approach to the problem is quite rational. Unfortunately, the tools did not cope with you. (We had the same problem.)

You will need a script that you yourself or otherwise customize the tools. This is what we have done. Successful approaches I've seen include:

  • *.vcproj/*.sln " ", CMake, QMake, Scons Gyp. Scons, Python , ( spidering). default, "" ( ), " " . . , , ,    Scons    (    Scons  *.sln *.vcproj).

  • *.vcproj . , . "" , " " , GUID - .

: ( ) , "" (, , , ).

. MSVS - IDE ( ) , , .

, , , MSBuild.

+3

, VS - , VS-, . :

0

All Articles