I cannot find a way to create a new solution file using the dotnet core CLI commands described in https://docs.microsoft.com/en-us/dotnet/articles/core/tools/dotnet-sln.
I ran the commands:
dotnet new web -n webtrain
dotnet new classlib -n core
after that, the projects were created correctly, but now I want to create a solution file to group them all, but I cannot find the right command to do that. Anyone knows how to do that?
Description. The dotnet sln command provides a convenient way to list and modify projects in a solution file.
Once you have a solution file, you can add a project to it using the sln add command, and provide the path to the project's . csproj file. This will add the project to an existing solution file in the current folder. The path to the project can be absolute or relative, but it will be added as a relative path in the .
looks like you use
dotnet new sln --name mysolution.sln
https://docs.microsoft.com/en-us/dotnet/articles/core/tools/dotnet-new
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