targeting a specific net core framework for a new sln file using dotnet CLI code example
Example 1: 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
Example 2: dotnet new emty webapp
dotnet new web -o <Web app name>