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)