title: Generate C# Class with svcutil.exe against xsd using External tools in VS 2012
body: <p>I have created a C# Data Contract class against XSD and used my WCF service. And I have setup the xsd.exe using Visual Studio External Tools like below,</p>
  
  <p>Use bat file with:</p>
  
  <pre><code>call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\VsDevCmd.bat"
  
  xsd %1 %2 /classes /language:CS
  </code></pre>
  
  <p>and then used bat file in external tools.</p>
  
  <pre><code>Title : XSD
  Command :C:\Tools\bin\xsd.bat
  Arguments : "$(ItemPath)" "/outputdir:$(ProjectDir)"
  </code></pre>
  
  <p>to this setup I am getting a class file in my project directory.</p>
  
  <p>So, My question is how to set up same kind of external tools  in visual studio for SVCUTIL.EXE tool.</p>
  
  <p>please suggest the better ways of doing..</p>
  
  <p>I am having a XSD file and I need pure Data Contract c sharp class for this.</p>
  
  <p>I have tried SVCutil.exe tool in command line option.</p>
  
  <pre><code>svcutil.exe "E:\Test.xsd" /dconly
  </code></pre>
  
  <p>Getting this error:
  Error: Type 'LoadReference' in namespace '' cannot be imported. Complex types with simple content extension are not supported. Either change the schema so that
  the types can map to data contract types or use ImportXmlType or use a different serializer.</p>
  
  <p>It seems like this tool not supporting complex types.</p>
  
  <p>Thanks in advance...</p>