title: Visual Studio 2010 : XML XSD Schema to Classes within the IDE
body: <p>Whenever I have needed to create a class file from an XML XSD schema, I use the .NET xsd.exe tool and prebuild events, in VS, to ensure that my classes and schemas are in sync with each other at build time.  This of course works fine, however...</p>
  
  <p>I have noticed that if the XSD and derived class are in the same project VS understands the relationship and visually displays the CS as a child of the XSD file in solution explorer.  So I was wondering if there is any functionality in Visual Studio 2010 to perform class creation for me within the IDE rather than relying on the prebuild script?</p>
  
  <p>For example, I would add the XSD to the project set some options somewhere and VS takes over and creates my classes for me.</p>
  
  <p>Does VS 2010 support anything like this?  Or should I just stop wondering and continue to use xsd.exe and prebuild.</p>
  
  <p><strong>EDIT</strong>
  I have also noticed that under the properties of the XSD file I have the option to set a <code>Custom Tool</code>, reading the description this seems close to what I am aiming for but I am unsure of the correct usage for this property.</p>
  
  <p><strong>EDIT</strong>
  Also, if there is a solution I need this to be based on the features/functions that come as standard with VS2010.  I would prefer to not use a 3rd party addon etc</p>