title: How to specify the targetframework for nuget dependencies?
body: <p>I have created a private nuget package with targetframework Netstandard 2.0
  This package has a dependency on EntityFrameworkCore and EntityFramework.DbContextScope.</p>
  
  <p>This works perfectly fine if I use this in a .Net Core project, but not in a .net Framework 4.6.1 project.</p>
  
  <p>The package EntityFramework.DbContextScope is causing the issues. I had a look at the source code in nuget and saw this in the project.json</p>
  
  <pre><code>"frameworks": {
  "netstandard1.3": {
    "imports": [
  
    ],
    "dependencies": {
      "NETStandard.Library": "1.6.0",
      "Microsoft.EntityFrameworkCore.Relational": "1.0.0"
    },
    "buildOptions": {
      "define": [
        "EFCore"
      ]
  
    }
  },
  "net46": {
    "dependencies": {
      "EntityFramework": "6.1.3"
    },
    "buildOptions": {
      "define": [
        "EF6"
      ]
    },
    "frameworkAssemblies": {
      "System.Data": "4.0.0.0"
    }
  },
  </code></pre>
  
  <p>If I install my nuget package in a .net framework 4.6.1 project it will automatically install EntityFramework 6 as well, but I created my Nuget package with EntityFrameworkCore.</p>
  
  <p>Can I make a change in my Nuget package so it will always install EntityFramework.DbContextScope with targetframework netstandard instead of net46?</p>
  
  <p>EDIT: The only way I could make this work until now is manually editing the hintpath in the csproj file of the .net framework 4.6.1 project. This works, but is far from ideal.</p>
  
  <pre><code> &lt;Reference Include="EntityFramework.DbContextScope, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"&gt;
    &lt;HintPath&gt;..\packages\EntityFramework.DbContextScope.1.0.0\lib\netstandard1.3\EntityFramework.DbContextScope.dll&lt;/HintPath&gt;
  &lt;/Reference&gt;
  </code></pre>