title: TeamCity includes dll as reference when building project
body: <p>We have a project with included win32 dll as <em>content</em> file. This file (native32.dll) is copied to the output directory and imported at runtime. Visual studio compiles project without any problems, however TeamCity takes this .dll file (or any .dll file included in the project structure) and treats it as if it was a reference:</p>
  
  <pre><code>  csc.exe &lt;..&gt; /reference:native32.dll &lt;..&gt;
  </code></pre>
  
  <p>Build fails with error:</p>
  
  <pre><code>CSC error CS0009: Metadata file 'native32.dll' could not be opened -- PE image doesn't contain managed metadata
  </code></pre>
  
  <p>How can this native32.dll be excluded from being referenced?</p>