title: The test assembly '*.dll' cannot be loaded. Error details: Could not find file *.dll'
body: <p><strong>UPDATE:</strong> I've figured out that every time I run a test, a new folder is created (Benjamin_C12LPCRE 'date' 'time') but the dll is not being <em>created</em> where as I thought it was originally just <em>missing</em>. </p>
  
  <p>What I have done:</p>
  
  <ol>
  <li>Removed and re-added the reference to the Main Project (DCIM) in the Test Project</li>
  <li>Removed and re-added the reference <code>Microsoft.VisualStudio.QualityTools.UnitTestFramework</code></li>
  <li>Built, Re-Built and Cleaned (not necessarily in that order) the Main and Test Projects, and the Entire Solution</li>
  <li>Deleted all "obj" and "bin" folders in whole solution.</li>
  <li>Added <code>[DeploymentItem("DCIM.dll")]</code> attribute to the Test Project, both before the <code>[TestClass()]</code> and <code>[TestMethod()]</code> declarations</li>
  </ol>
  
  <p><strong>So how do I make sure all the necessary files are being created properly?</strong></p>
  
  <p><em>Original Question:</em></p>
  
  <p>Yesterday, my tests were running fine, I recently did a project re-name, which led to some confusion with some of the tests, but now none of my tests are working, and they all show this error:</p>
  
  <blockquote>
    <p>The test assembly 'C:\Visual Studio 2010\Projects\DCIM\TestResults\Benjamin_C12LPCRE 2014-04-29 11_57_58\Out\DCIM Test.dll' cannot be loaded. Error details: Could not find file 'C:\Visual Studio 2010\Projects\DCIM\TestResults\Benjamin_C12LPCRE 2014-04-29 11_57_58\Out\DCIM Test.dll'.</p>
  </blockquote>
  
  <p>I checked the file path and lo and behold, no dll. </p>
  
  <p><strong>Should there be? Is there a way to fix this?</strong></p>
  
  <p>The Test project is in the same solution as the Main project, and as I said, I recently renamed my project which was causing some errors which I have asked about <a href="https://stackoverflow.com/questions/23334933/system-typeloadexception-could-not-load-type-x-from-assembly-y" title="here">here</a></p>