QualityInformationFramework / qif-community

The online hub for the QIF community
Boost Software License 1.0
23 stars 17 forks source link

Error: Invalid command line argument: "cxx-tree" #27

Open Aderiani opened 1 year ago

Aderiani commented 1 year ago

I updated my visual studio to the lastest version today and I cannot compile the project to create QIF libs anymore. Before that everything was fine!. When I want to build the files I get this error:

.\QIF_30\xsd-cxx-tree.targets(45,5): error MSB3721: The command "xsd.exe cxx-tree --generate-serialization --generate-polymorphic --generate-default-ctor --generate-intellisense --output-dir .\QIFLibrary --hxx-suffix .hxx --cxx-suffix .cxx --ixx-suffix .ixx --fwd-suffix -fwd.hxx --namespace-map http://qifstandards.org/xsd/qif3=xsd::qif30 --root-element QIFDocument --export-symbol QIF30_SYMBOL_DECL --location-map http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd=..\QIFLibrary\xmldsig-core-schema.xsd --hxx-prologue "#include \"..\export.hxx\"" ..\QIFLibrary\Auxiliary.xsd" exited with code 1.

has anyone else had the same problem?

daniel-campbell commented 1 year ago

Can you provide some more info about what bindings you are using, what version of visual studio, etc.?

Aderiani commented 1 year ago

Thanks for the reply.

Sure, I'm using the Codesynthesis binding. And I updated visual studio (2022) from version 17.3 to 17.4.

This error is related to creating the command for codesynthesis (xsd) for generating the cpp files. And my Codesynthesis version is 3.3.0. Everything was working perfectly before the update, I also checked codesynthesis installation and it works fine.

Maybe you can also check if that project can be compiled via the latest visual studio available (17.4)? Thanks.

yigito1 commented 1 year ago

I am using Microsoft Visual Studio Community 2019 Version 16.11.27 with Codesynthesis binding. I am getting the same error. If there is an update, could you please inform?