How to create Solution file with dotnet core CLI

looks like you use

dotnet new sln --name mysolution.sln

https://docs.microsoft.com/en-us/dotnet/articles/core/tools/dotnet-new


AS I've seen it's a two step operation which consists of: 1 - Creating the Solution file with "dotnet new sln --name mysolution.sln" command in the folder you need and 2 - Add your csproj file to this solution with the command "dotnet sln yourSlnFileYouCreated.sln add PathToTheCsProjFile"

You can remove and add more projects to the same solution file if you want.

https://docs.microsoft.com/en-us/dotnet/articles/core/tools/dotnet-new https://docs.microsoft.com/en-us/dotnet/articles/core/tools/dotnet-sln.


first you have to create folder. this will be the solution name. then run this command inside that folder

dotnet new sln

this will create .sln file in that folder