title: Could not load assembly Microsoft.EntityFrameworkCore.Design when running Add-Migration
body: <p>I have created a Class Library project with the following .csproj:</p>
  
  <pre><code>  &lt;Project Sdk="Microsoft.NET.Sdk"&gt;
  
    &lt;PropertyGroup&gt;
      &lt;TargetFramework&gt;netcoreapp1.1&lt;/TargetFramework&gt;
    &lt;/PropertyGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="1.1.1" /&gt;
      &lt;PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="1.1.1" /&gt;
      &lt;PackageReference Include="Microsoft.EntityFrameworkCore.sqlserver.Design" Version="1.1.1" /&gt;
      &lt;PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="1.1.0" /&gt;
    &lt;/ItemGroup&gt;
  
  &lt;/Project&gt;
  </code></pre>
  
  <p>When running the command:</p>
  
  <pre><code>Add-Migration -Name Test -Context TestContext
  </code></pre>
  
  <p>I am getting the following error:</p>
  
  <pre><code>System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.EntityFrameworkCore.Design, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
  File name: 'Microsoft.EntityFrameworkCore.Design, Culture=neutral, PublicKeyToken=null'
     at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks, IntPtr ptrLoadContextBinder)
     at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks, IntPtr ptrLoadContextBinder)
     at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
     at Microsoft.EntityFrameworkCore.Tools.ReflectionOperationExecutor..ctor(String assembly, String startupAssembly, String projectDir, String contentRootPath, String dataDirectory, String rootNamespace, String environment)
     at Microsoft.EntityFrameworkCore.Tools.Commands.ProjectCommandBase.CreateExecutor()
     at Microsoft.EntityFrameworkCore.Tools.Commands.MigrationsAddCommand.Execute()
     at Microsoft.DotNet.Cli.CommandLine.CommandLineApplication.Execute(String[] args)
     at Microsoft.EntityFrameworkCore.Tools.Program.Main(String[] args)
  Could not load file or assembly 'Microsoft.EntityFrameworkCore.Design, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
  </code></pre>
  
  <p>However Microsoft.EntityFrameworkCore.Design is already installed.</p>
  
  <p>I am using Visual Studio Community 2017 (VisualStudio/15.0.0+26228.9)</p>
  
  <p>What am I missing?</p>