Currently, the .NET Core SDK allows you to work with sln files.
Imagine you have a root folder for a solution. All projects are located in the src and test folders.
Then from the solutions folder do something like this:
dotnet sln add ./src/Insurance.Domain/Insurance.Domain.csproj dotnet sln add ./test/Insurance.Domain.Tests/Insurance.Domain.Tests.csproj
You can list projects when you run the solution.
dotnet sln list
Note: The solution above will not work with project.json files. In any case, the project.json format is outdated now, and you can facilitate porting to csprojs with the latest SDK. Just run in the project folder:
dotnet migrate
and you are good to go.
source share