title: MSBuild Error CS0012
body: <p>I am having a msbuild error with dotNet framework 4.0. I can build locally in VS2012 without any errors but when I push the code to the build server it fails with the following error:</p>
  
  <pre><code>error CS0012: The type 'CS.Framework.Services.IRequest' is defined in an assembly that is not referenced. You must add a reference to assembly 'CS.Framework.Services, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0decfeffa518e9a9'.
  </code></pre>
  
  <p>Here is the logging from msbuild and you can see the project in question is listed:</p>
  
  <pre><code>&lt;task name="msbuild"&gt;
      &lt;message level="Info"&gt;&lt;![CDATA[CS.Framework.Enums -&gt; e:\CCNet\SVNCheckouts\]&gt;&lt;/message&gt;
      &lt;message level="Info"&gt;&lt;![CDATA[CS.Framework.Extensions -&gt; e:\CCNet\SVNCheckouts\]&gt;&lt;/message&gt;
      &lt;message level="Info"&gt;&lt;![CDATA[CS.Entities.Common -&gt; e:\CCNet\SVNCheckouts\]&gt;&lt;/message&gt;
      &lt;message level="Info"&gt;&lt;![CDATA[CS.Framework.Common -&gt; e:\CCNet\SVNCheckouts\]&gt;&lt;/message&gt;
      &lt;message level="Info"&gt;&lt;![CDATA[CS.Framework.Services -&gt; e:\CCNet\SVNCheckouts\]&gt;&lt;/message&gt;
      &lt;message level="Info"&gt;&lt;![CDATA[CS.DataContracts.Services.Core -&gt; e:\CCNet\SVNCheckouts\]]&gt;&lt;/message&gt;
      &lt;message level="Info"&gt;&lt;![CDATA[CS.DataContracts.NetSuiteService -&gt; e:\CCNet\SVNCheckouts\]&gt;&lt;/message&gt;
      &lt;message level="Info"&gt;&lt;![CDATA[CS.ServiceContracts.NetSuiteService -&gt; e:\CCNet\SVNCheckouts\]&gt;&lt;/message&gt;
      &lt;message level="Info"&gt;&lt;![CDATA[CS.DataContracts.Authorization -&gt; e:\CCNet\SVNCheckouts\]&gt;&lt;/message&gt;
      &lt;message level="Info"&gt;&lt;![CDATA[CS.ServiceContracts.Authorization -&gt; e:\CCNet\SVNCheckouts\]]&gt;&lt;/message&gt;
      &lt;message level="Info"&gt;&lt;![CDATA[CS.Entities.Services.Core -&gt; e:\CCNet\SVNCheckouts\]]&gt;&lt;/message&gt;
      &lt;message level="Info"&gt;&lt;![CDATA[CS.Framework.Caching -&gt; e:\CCNet\SVNCheckouts\]]&gt;&lt;/message&gt;
      &lt;message level="Info"&gt;&lt;![CDATA[CS.Framework.Wcf -&gt; e:\CCNet\SVNCheckouts\]]&gt;&lt;/message&gt;
      &lt;message level="Info"&gt;&lt;![CDATA[CS.Framework.Services.Core -&gt; e:\CCNet\SVNCheckouts\]]&gt;&lt;/message&gt;
      &lt;message level="Info"&gt;&lt;![CDATA[CS.Services.NetSuiteService -&gt; e:\CCNet\SVNCheckouts\]]&gt;&lt;/message&gt;
      &lt;message level="Info"&gt;&lt;![CDATA[c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "CS.Framework.Services". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. ]]&gt;&lt;/message&gt;
      &lt;message level="Info"&gt;&lt;![CDATA[ServiceTests.cs(41,13): error CS0012: The type 'CS.Framework.Services.IRequest' is defined in an assembly that is not referenced. You must add a reference to assembly 'CS.Framework.Services, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0decfeffa518e9a9'. ]]&gt;&lt;/message&gt;
      &lt;duration&gt;1000.0256&lt;/duration&gt;
    &lt;/task&gt;
  </code></pre>
  
  <p>The project has a reference to CS.Framework.Services project so not sure why it says its not there.</p>