We have two large solution files that we would like to merge into a single solution.
We could just add the projects from solution A to solution B. But wondering if there is a less time consuming way to do this?
I had similar requirement to merge a few .sln files into one (Visual Studio 2013). What I did was:
Open one .sln in visual studio [File > Open > Project/Solution...]
Open second .sln in visual studio [File > Open > Project/Solution...] but select 'Add to Solution' option. You might then get warnings that project of same name already exists - ignore them. If there are duplicate folder names, you may need to resolve them after the projects are added to new .sln file
Repeat step 2 for all the rest of .sln files
This worked for me, not sure what would happen in case of duplicate GUIDs though.
It's quite error-prone merging two versions of the same solution file - merging two separate files would be even more error-prone in my opinion.
I know no tools for this - my normal approach has been to use VS itself and manually add the projects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With