2

This is the command that needs to be executed Opc.Ua.ModelCompiler.exe -d2 -c[g] -o2 :

.\Opc.Ua.ModelCompiler.exe -d2 C:\Users\Downloads\DemoModel\DemoModelnew.xml -cg C:\Users\Downloads\DemoModel\DemoModelnew.csv" -o "C:\Users\Downloads\DemoModel\" -version v104

The error:

[CommandParsingException] Unrecognized option '-d2' > (Microsoft.Extensions.CommandLineUtils.CommandLineApplication)

wohlstad
  • 12,661
  • 10
  • 26
  • 39
Sakura
  • 31
  • 1
  • Welcome to Stack Overflow. Please read [ask] and note that this is not tech support. If you have a question about how to use a program, you should start by *reading the documentation* for that program. Stack Overflow is for questions about *code*. – Karl Knechtel Mar 14 '22 at 09:09

1 Answers1

0

Try adding compile after .\Opc.Ua.ModelCompiler.exe. The command would be the following in your case:

.\Opc.Ua.ModelCompiler.exe compile -d2 "C:\Users\Downloads\DemoModel\DemoModelnew.xml" -cg "C:\Users\Downloads\DemoModel\DemoModelnew.csv" -o "C:\Users\Downloads\DemoModel" -version v104