dotnet new solution add inside solution code example
Example: dotnet core sloution
dotnet new sln --name my-solution
dotnet new [type] --name my-project
dotnet sln add my-project/my-project.csproj
dotnet sln list
dotnet restore
dotnet build my-solution.sln