title: Why doesn't the /reference option to svcutil.exe work?
body: <p>I'm attempting to use svcutil.exe to generate -only- the service contracts (interfaces) from a set of .wsdl files. When I do this (from an http-hosted wsdl), it picks up the included schemas and generates all the code for them.</p>
  
  <p>Great.</p>
  
  <p>What I would <em>REALLY</em> like to do, however, is to use a set of classes already generated from the schema files using the xsd.exe tool (the reasons for this are not important, suffice it to say that I need to have the types in one assembly, and the service contracts in another). I was successful in generating an assembly containing all the types.</p>
  
  <p>The problem occurs when I attempt to get svcutil.exe to use the types in that assembly. My command line looks something like this:</p>
  
  <pre><code>svcutil /target:code /noconfig /reference:my_types.dll http://path/to/wsdl
  </code></pre>
  
  <p>This works fine, but the generated code contains duplicates of all the types in the my_types.dll file. It is my understanding from the documentation for svcutil.exe that this is the exact problem that the /reference: parameter is meant to overcome. In my case, however, it is not working.</p>
  
  <p>Why?</p>