dotnet new project in folder 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 options

dotnet new <TEMPLATE> [--dry-run] [--force] [-i|--install {PATH|NUGET_ID}]
    [-lang|--language {"C#"|"F#"|VB}] [-n|--name <OUTPUT_NAME>]
    [--nuget-source <SOURCE>] [-o|--output <OUTPUT_DIRECTORY>]
    [-u|--uninstall] [--update-apply] [--update-check] [Template options]

dotnet new <TEMPLATE> [-l|--list] [--type <TYPE>]

dotnet new -h|--help