Unable to generate schema using XSD.exe tool

G

Guest

Hi,

I am using the XSD utility to generate schemas for some of the classes that
we serialize in our project. Everything works fine and dandy until I try and
create a schema for a class that spans assemblies.

For example, if I have a class named "ClassB" that resides in "ClassB.exe"
and uses stuff (classes) from "ClassC.dll", I would expect the following to
work:

"xsd ClassB.exe ClassC.dll /t:ClassB"

In my case I am getting this error message:
"Error: There was an error processing 'wincal.exe'.
- There was an error reflecting type 'CMI.WinCal.cDataCopy'.
- File or assembly name CmiSystemSetup, or one of its dependencies, was
not found."

I have given xsd.exe all of the referenced assemblies (including
"CmiSystemSetup.dll") but no dice. Any ideas?

Thanks,
Nate



The XSD version follows:
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 1.1.4322.573]
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
 
G

Guest

Hi Peter,

Actually, I am trying to generate a schema (.xsd) from a class in a managed
assembly (.exe). These tools appear to generate source from existing schemas.

Thanks,
Nate

Peter Bromberg said:
You might want to take a look at either XSDObjectGen, or possibly even Dingo,
both of which are respectively more sophisticated than XSD.EXE.

Here's a blog post describing each, that includes links to them:

http://petesbloggerama.blogspot.com/2005/07/contract-first-and-xsdobjectgen.html

good luck,
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




Nathan Wiegman said:
Hi,

I am using the XSD utility to generate schemas for some of the classes that
we serialize in our project. Everything works fine and dandy until I try and
create a schema for a class that spans assemblies.

For example, if I have a class named "ClassB" that resides in "ClassB.exe"
and uses stuff (classes) from "ClassC.dll", I would expect the following to
work:

"xsd ClassB.exe ClassC.dll /t:ClassB"

In my case I am getting this error message:
"Error: There was an error processing 'wincal.exe'.
- There was an error reflecting type 'CMI.WinCal.cDataCopy'.
- File or assembly name CmiSystemSetup, or one of its dependencies, was
not found."

I have given xsd.exe all of the referenced assemblies (including
"CmiSystemSetup.dll") but no dice. Any ideas?

Thanks,
Nate



The XSD version follows:
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 1.1.4322.573]
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top