This tool merges multiple .NET solution files into a single solution file. It is designed to be run from the command line and accepts various input options for flexibility.
The source code is almost entirely written by Claude Sonnet 3.5.
Ensure you have .NET SDK installed. Clone or download the repository containing this tool, then build it using the .NET CLI.
Download the repository and navigate to the project directory and run the following command:
dotnet build DotNetSolutionsMerger.sln
Or just download the latest release (dll) from the Releases
The tool can be invoked using the command line. Below are the usage options and examples.
dotnet MergeSolutions.dll --input <input_paths> --output <output_path>
--input
,-i
: Input solution file paths or a directory containing solution files. This option is required and can accept multiple paths.--output
,-o
: Output path for the merged solution file. This option is required.
To merge several solution files into a single solution file:
dotnet MergeSolutions.dll --input solution1.sln solution2.sln solution3.sln --output mergedSolution.sln
This command merges solution1.sln
, solution2.sln
, and solution3.sln
into mergedSolution.sln
.
To merge all solution files located in a specific directory:
dotnet MergeSolutions.dll --input /path/to/solutions --output mergedSolution.sln
This command merges all solution files found in /path/to/solutions
directory into mergedSolution.sln
.