title: ASP.NET Core (vNext) project can't find reference to 4.51
body: <p>I have a asp.net 5 (vNext) project with a project.json that is named FMS.DOMAIN.  One of the references is a dotNet 4.51 project named FMS.DAL.  </p>
  
  <p>This works on all machine except one.  On one machine it can't find this dotNet 4.51 project.  I think it is looking for it on a public nuget server.</p>
  
  <p>When I do 'dnu restore'  I see this:</p>
  
  <blockquote>
    <p>C:_Workspaces\MyProject\MyProject\FMS.Domain\project.json
         CACHE <a href="https://www.nuget.org/api/v2/FindPackagesById()?id=" rel="nofollow">https://www.nuget.org/api/v2/FindPackagesById()?id=</a>'FMS.DAL'
        Unable to locate Dependency FMS.DAL >= 1.0.</p>
  </blockquote>
  
  <p>This is the project.json from FMS.Domain.</p>
  
  <pre><code>{
    "version": "1.0.0-*",
    "description": "FMS.Domain Class Library",
    "authors": [ "ctcrrmcidmc" ],
    "tags": [ "" ],
    "projectUrl": "",
    "licenseUrl": "",
    "frameworks": {
      "dnx451": {
        "dependencies": {
          "FMS.DAL": "1.0.0-*"
        }
      }
    },
    "dependencies": {
      "AutoMapper": "4.1.1",
      "FMS.Common": "1.0.0-*"
    }
  }
  </code></pre>
  
  <p>How does it know when to search nugget and when to use a local project?  The reference to  "FMS.Common": "1.0.0-*" is also a local project and it's working (but it's vNext).</p>
  
  <p>We did get it to work if we had a reference to the DLL directly using the 'Add Reference' context menu.  That produce an edit the project.json that look the same as the manual edit but it works.  It must be doing something else.</p>
  
  <p><strong><em>More Info:</em></strong>
  I blew away my workspace and got the code fresh from TFS.  I am getting the problem on my machine.  I see this error with 'dnu restore':</p>
  
  <blockquote>
    <p>CACHE <a href="https://www.nuget.org/api/v2/FindPackagesById()?id=" rel="nofollow">https://www.nuget.org/api/v2/FindPackagesById()?id=</a>'FMS.DAL'
    nable to locate Dependency FMS.DAL >= 1.0.0</p>
  </blockquote>
  
  <p>It is looking for FMS.DAL at nuget.org instead of in my project.  I removed the dependency from project.json and saved, then I add it back by right-clicking on references and picking a project reference.  It's added back to project.json and looks exactly the same as before I removed it.  I run 'dnu restore' again and it works.<br>
  The only pending change is in project.json and when I do a compare with TFS there are no differences.  Then I did an undo pending changes for the entire solution and 'dnu restore' still works.</p>