title: Unable to project reference a .NET Core Class Library from Full .NET Project
body: <p>I'm trying to split my .NET Core project into separate concerns using Class Librairies. I want one (or many) Class libraries and one host project. Class librairies will define the MVC Controllers and the business logic while the host project will be in charge of providing a working host. Unfortunately, the project reference refuses to work.</p>
  
  <p>Let me give you the steps I took to arrive to this issue.</p>
  
  <ol>
  <li>Create empty solution in Visual Studio 2015 Update 3</li>
  <li>Create a project of type <em>Class Library (.NET Core)</em> named <strong>ClassLibrary1</strong></li>
  <li>Go in the <em>project.json</em> and modify it to make it look like below.</li>
  <li>Create a project of type <em>Console Application</em> (not .NET Core) named <strong>ConsoleApplication1</strong></li>
  <li>Right-click in References under ConsoleApplication1 and add <em>ClassLibrary1</em> as a <em>Project reference</em>.</li>
  <li>Refer to a type that exists in <em>ClassLibrary1</em>.</li>
  <li>Build the solution.</li>
  </ol>
  
  <p>This will lead the a Build failure in the <em>ConsoleApplication1</em> project with the code error CS0246: <code>The type or namespace name 'ClassLibrary1' could not be found (are you missing a using directive or an assembly reference?)</code>. If instead of adding the reference as a <em>Project reference</em> I go and browse to the <em>bin</em> folder and refer the dll directly, everything builds without an issue. However, this is not a solution since the Build target may change, so the path will change as well.</p>
  
  <p>Code of the <em>project.json</em>:</p>
  
  <pre><code>{
    "version": "1.0.0-*",
  
    "dependencies": {
  
    },
  
    "frameworks": {
      "net452": {
      }
    }
  }
  </code></pre>
  
  <p>Is this a Visual Studio bug, or am I doing something wrong? I tried using <em>netstandard1.2</em>, <em>net452</em>, but the result remains the same.</p>
  
  <p><strong>EDIT</strong>
  I created an issue in the .NET CLI Github repository. Here is the link: <a href="https://github.com/dotnet/cli/issues/3926" rel="noreferrer">https://github.com/dotnet/cli/issues/3926</a>.</p>