Tuesday, June 26, 2007

Using import and XSD.EXE

I was going to use XSD.exe on a XSD I made. The XSD was importing a XSD with general definitions
.

First when trying to use XSD.exe to generate the C# class it didn't found the imported schema. Then I added the imported XSD to the command in my bat file (that I use instead of writing in the command line every time).

Now it works! The bat file looks like this

"C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\xsd.exe" Object.xsd "./General/General.xsd" /c /l:cs /edb /n:Company.Project.BusinessEntities
pause

Thats all.

No comments: