Reference a Full Framework Library Project from ASP.NET Core MVC Web Application (RC2)?
<p>I'm currently using ASP.NET Core MVC RC2 which is suppose to support referencing a full framework library Project from a Core MVC Web Application Project.  But I can't seem to make it work.</p>

<p>I have an existing full framework library project that I'd like to use with a new Core MVC Web application project.  But when I try to add a reference to the library's project I get an error that says the target framework for it is incompatible with the target framework for the web application.  </p>

<p>To try to simplify the problem I created a new Core MVC web application and a new Windows Code Library and tried to add a reference from the web application project to the library's project and got the same error message. I've searched on stack overflow and I did find this question that seemed highly relevent:<a href="https://stackoverflow.com/questions/37005644/how-to-make-asp-net-core-rc2-app-build-on-net46-framework-with-older-third-party">How to make ASP.NET Core RC2 app build on net46 framework with older third party dependencies</a> but I was unable to use the information there to solve my issue.</p>

<p><strong>Here are the steps to reproduce the issue:</strong><br>
I created a solution with a ".NET Core" "ASP.NET Core Web Application" project based on the "Web Application" template in Visual Studio 2015. </p>

<p><a href="https://i.stack.imgur.com/04Sfd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/04Sfd.png" alt="[pic 1"></a></p>

<p><a href="https://i.stack.imgur.com/j3flS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j3flS.png" alt="[pic 2"></a></p>

<p>I then added a new "Windows" "Class Library" project to the solution. </p>

<p><a href="https://i.stack.imgur.com/uMe8l.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uMe8l.png" alt="enter image description here"></a></p>

<p>So at this point the solution looks like this:</p>

<p><a href="https://i.stack.imgur.com/sV1ue.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sV1ue.png" alt="pic 4"></a></p>

<p>Now, when I try to use visual studio to add reference from the Core MVC Web Application to the Full Framework library I get an error that says that "ExampleLib has a target frameworks that are incompatible with the targets in current project ExampleWebApplicaiton.":</p>

<p><a href="https://i.stack.imgur.com/lxtDd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lxtDd.png" alt="enter image description here"></a></p>

<p>This error seems fairly self explanatory and seems to want me to change the framework that the web application is targeting so that it's the same as the library, which makes perfect sense.  The problem is that I can't find documentation on how to do that and intellisense isn't being particularly helpful.</p>

<p>I suspect I need to change one of the following pieces of the <code>project.json</code> file for the web application:</p>

<pre><code>"dependencies": {
    "Microsoft.NETCore.App": {
     "version": "1.0.0-rc2-3002702",
     "type": "platform"
   },
</code></pre>

<p>or </p>

<pre><code> "frameworks": {
    "netcoreapp1.0": {
      "imports": [
        "dotnet5.6",
        "dnxcore50",
        "portable-net45+win8"
      ]
    }
  },
</code></pre>

<p>How do I specify .NETFramework Version 4.6 for the Core MVC Web Application instead of .NETCoreApp?</p>