create dotnet core project code example Example 1: dotnet create project command line dotnet new console Example 2: dotnet core create console project dotnet new console