Avm
Avm

Reputation: 13

Generating Cs file from xsd

I am trying to generate a Cs file from an XSD I have. I have tried executing the following command:

D:\>xsd /dataset /language:CS /outputdir:D:\UKBTrunk\SaaS UKB Core Trunk\Shared\d
otNet\BT.SaaS.Core.Shared\BT.SaaS.Core.Shared.Interfaces\SharedContracts\CMPS\Re
sponse getAgreementPlanChangeHistory.xsd

I am getting the error:

Error: invalid command line argument: 'UKB'.

What am I doing wrong?

Upvotes: 0

Views: 1040

Answers (1)

Emond
Emond

Reputation: 50672

The error message gave it away; the program considers UKB not to be a part of the path.

Add quotes:

D:\>xsd /dataset /language:CS/outputdir:"D:\UKBTrunk\SaaS UKB Core Trunk\Shared\dotNet\BT.SaaS.Core.Shared\BT.SaaS.Core.Shared.Interfaces\SharedContracts\CMPS\Response" getAgreementPlanChangeHistory.xsd

Upvotes: 5

Related Questions