如果想知道這個命令的詳細用法,可以在打完命令之后,在輸入一個" --help"即可
$ dotnet new --help
.NET Initializer
Usage: dotnet new [options]
Options:
-h|--help Show help information
-l|--lang <LANGUAGE> Language of project [C#|F#]
-t|--type <TYPE> Type of project
$ dotnet new -t --help
Unrecognized type: --help
Avaiable types for C# :
- Console
- Web
- Lib
- xunittest
從這里可以看到,dotnet new的創建類型有4個,默認的為Console,也就是命令行應用程序,之后的還有-Web、-Lib、-xunittest。