如果想知道这个命令的详细用法,可以在打完命令之后,在输入一个" --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。

相关文章:

  • 2022-12-23
  • 2021-12-12
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2021-06-17
猜你喜欢
  • 2022-12-23
  • 2021-05-22
  • 2021-06-28
  • 2021-06-23
  • 2022-12-23
相关资源
相似解决方案