我正在尝试使用codegen part
命令生成部分。当我在不提供它的情况下调用此命令properties
时效果很好,如下所示:
> codegen part MyModule CustomPart
但是当我提供一个单一的属性时,它会失败并出现以下错误:
> codegen part MyModule CustomePart /Properties: FOO:string
Error executing command "codegen part MyModule CustomePart FOO:string"
Command arguments "MyModule CustomePart FOO:string" don't match command definition
Exception Details: System.InvalidOperationException: Command arguments "MyModule CustomePart FOO:string" don't match command definition
Stack Trace:
[InvalidOperationException: Command arguments "MyModule CustomePart FOO:string" don
't match command definition]
at Orchard.Commands.DefaultOrchardCommandHandler.Invoke(CommandContext contex
t) in d:\Currently Working\Varzesh\Site\src\Orchard\Commands\DefaultOrchardComma
ndHandler.cs:line 62
at Orchard.Commands.DefaultOrchardCommandHandler.Execute(CommandContext conte
xt) in d:\Currently Working\Varzesh\Site\src\Orchard\Commands\DefaultOrchardComm
andHandler.cs:line 18
at Orchard.Commands.DefaultCommandManager.Execute(CommandParameters parameter
s) in d:\Currently Working\Varzesh\Site\src\Orchard\Commands\DefaultCommandManag
er.cs:line 27
at Orchard.Commands.CommandHostAgent.RunCommand(TextReader input, TextWriter
output, String tenant, String[] args, Dictionary`2 switches) in d:\Currently Wor
king\Varzesh\Site\src\Orchard\Commands\CommandHostAgent.cs:line 112
难道我做错了什么?
非常感谢任何帮助。