Code Camp Part 1: Corrections

For those of you who attended I have a couple of corrections.

  1. Generating XSDs are easy in VS2005. After saving your XSD go to the XML menu and select Create Schema.

    Microsoft should not have changed the old right click to generate functionality of the old one.

  2. The tool to generate your code for the XSD is either

    xsd.exe
    http://msdn.microsoft.com/
    library/default.asp?url=/library/
    en-us/cptools/html/
    cpconXMLSchemaDefinitionToolXsdexe.asp

    or
    XSDObjectGen.exe (A much better tool)
    http://apps.gotdotnet.com/xmltools/xsdobjgen/readme.htm

If you decide to use XSDObjectGen.exe, then what you may want to do is to add it to your External Tools collection of VS2005 under “Tools>>External Tools…”.

Set your parameters as the following

  • For VB: $(ItemPath) /l:vb /f:$(ItemFileName).vb /c /d /t
  • For C#: $(ItemPath) /l:cs /f:$(ItemFileName).vb /c /d /t

More will be posted soon.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.