Sai*_*var 2 .net powershell .net-core
这是我的第一篇文章,因此对任何错误道歉.
我在Windows Powershell中运行了dotnet命令,它给了我如何使用它的说明:
Usage: dotnet [host-options] [command] [arguments] [common-options]
Common options:
-v|--verbose Enable verbose output
-h|--help Show help
Run Code Online (Sandbox Code Playgroud)
当我运行命令时
dotnet run -h|--help
Run Code Online (Sandbox Code Playgroud)
它给了我以下错误:
At line:1 char:17
+ dotnet run -h|--help
+ ~
Missing expression after unary operator '--'.
At line:1 char:15
+ dotnet run -h|--help
+ ~~
Expressions are only allowed as the first element of a pipeline.
At line:1 char:17
+ dotnet run -h|--help
+ ~~~~
Unexpected token 'help' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingExpressionAfterOperator
Run Code Online (Sandbox Code Playgroud)
任何想法为什么会这样?为什么命令没有按预期显示帮助?在各地搜索过,我无法得到确定的答案.
| 归档时间: |
|
| 查看次数: |
1077 次 |
| 最近记录: |