0

次のように、コマンドを使用せ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

私は何か間違ったことをしていますか?

どんな助けでも大歓迎です。

4

1 に答える 1