title: Errors loading references in Visual Studio 2015 with Aspnet 5
body: <p>I've started a new set of projects using VS 2015 and ASP.NET 5.</p>
  
  <p>I'm experiencing problems with referencing certain nuget packages. For now I have issues referencing Autofac in the new AspNet 5 class library.</p>
  
  <p>Adding "Autofac": "4.0.0-beta6-110" in project.json just gives me a yellow warning triangle in the references tree with a message saying "Errors - See Error List".</p>
  
  <p>Looking into the Output gives me no errors.
  Building fails, the project gives me the following error:</p>
  
  <p><em>Error      The dependency Autofac >= 4.0.0-beta6-110 could not be resolved.</em></p>
  
  <p>Worth knowing is that I've tested with different versions of Autofac so it might have resulted in some package cache hickups.</p>
  
  <p>From an AspNet 5 Web project I also reference Autofac and that seems to work, but in the reference list, Autofac shows up as an ordinary reference (not nuget) showing Autofac 1.0.0 which is incorrect.</p>
  
  <p>Is there anyway to clear dnx package cache? I've tried deleting the folder .dnx/packages without any results.</p>
  
  <p>I can't see that I've done anything wrong inside my projects so there must be some other cause to this.</p>
  
  <pre><code>    {
    "version": "1.0.0-*",
    "description": "ProjectName Class Library",
    "authors": [ "author" ],
    "tags": [ "" ],
    "projectUrl": "",
    "licenseUrl": "",
  
    "dependencies": {
      "System.Collections": "4.0.10-beta-23019",
      "System.Linq": "4.0.0-beta-23019",
      "System.Threading": "4.0.10-beta-23019",
      "System.Runtime": "4.0.10-beta-23019",
      "Microsoft.CSharp": "4.0.0-beta-23019",
      "Autofac": "4.0.0-beta6-110"
    },
  
    "frameworks": {
      "dotnet": { }
    }
  }
  </code></pre>
  
  <p>This is the error I get in the solution explorer:</p>
  
  <p><a href="https://i.stack.imgur.com/nd7EZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nd7EZ.png" alt="Error message shown in class library"></a></p>
  
  <p>This is how it's getting presented in the web project (even though it uses Autofac 4.0)</p>
  
  <p><a href="https://i.stack.imgur.com/zOYA4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zOYA4.png" alt="enter image description here"></a></p>