title: nuget - package restore not working
body: <p>My aim is to have package restore working on a build server so that I don't have to check in binaries. At the moment, I'm simply trying to get it to work on my own machine using Visual Studio.</p>
  
  <p>Here's what I've done so far:</p>
  
  <ol>
  <li>Followed the instructions here <a href="http://docs.nuget.org/docs/workflows/using-nuget-without-committing-packages" rel="nofollow noreferrer">http://docs.nuget.org/docs/workflows/using-nuget-without-committing-packages</a>, including both setting the Tools-Options flag and the environment variable (belt and braces)</li>
  <li>Installed the NuGetEnablePackageRestore package as suggested here <a href="https://stackoverflow.com/questions/11828115/nuget-package-restore-consent-without-nuget">NuGet package restore consent without NuGet</a></li>
  <li>Checked everything in (the .nuget solution folder and its contents), but not the binaries I want to reference, because that's the whole point of the exercise</li>
  </ol>
  
  <p>Here's what I'm doing:</p>
  
  <ol>
  <li>Check out solution</li>
  <li>Verify that nunit.framework.dll and moq.dll are not present in the checked out solution</li>
  <li>Build the solution</li>
  </ol>
  
  <p>Visual Studio complains that Moq is missing. I search for the dlls in the solution directory and find that:</p>
  
  <ol>
  <li>nunit.framework.dll is present in the appropriate bin folders</li>
  <li>Moq.dll is nowhere to be found</li>
  </ol>
  
  <p>But there's more. This is truly mysterious, but if I do a fresh checkout, disconnect from the internet and build, I get precisely the same results - nunit.framework.dll is there, but moq.dll is not. <strong>The build process has conjured nunit.framework.dll literally from nowhere.</strong></p>
  
  <p>So it's something of an understatement to say that I am completely baffled. Can anyone suggest answers to the following questions:</p>
  
  <ol>
  <li>Why is package restore not downloading Moq?</li>
  <li>Where on earth is the build process getting nunit.framework.dll, if not the internet?</li>
  </ol>