title: Version for package `Microsoft.EntityFrameworkCore.Tools.DotNet` could not be resolved
body: <p>I am deploying a new .NET Core application to my server. I'm trying to run the EntityFramework migration, as the project was created using the "code-first" method.</p>
  
  <p>The command to be run is</p>
  
  <blockquote>
    <p>dotnet ef database update</p>
  </blockquote>
  
  <p>Migrations work locally using visual studio without issue, however, on the server, I receive the error;</p>
  
  <blockquote>
    <p>Version for package <code>Microsoft.EntityFrameworkCore.Tools.DotNet</code> could not be resolved.</p>
  </blockquote>
  
  <p>The version on my development machine of DotNet is 1.0.0</p>
  
  <p>The version on my server of DotNet is 1.0.1</p>
  
  <p>My project uses the .csproj file (not project.json, which is no longer used it seems).</p>
  
  <p>I have added the reference to the csproj file, but regardless of the version I still get the above error.</p>
  
  <pre><code>  &lt;ItemGroup&gt;
      &lt;DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.0" /&gt;
      &lt;DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.1" /&gt;
    &lt;/ItemGroup&gt;
  </code></pre>
  
  <p><strong>Update</strong></p>
  
  <p>Basically I have tried installing the Microsoft.EntityFrameworkCore.Tools.DotNet from the command line using NUGET:</p>
  
  <blockquote>
    <p>C:\Program Files (x86)\Jenkins\workspace\api.XXX.com\XXXProject>nuget i
    nstall Microsoft.EntityFrameworkCore.Tools.DotNet</p>
  </blockquote>
  
  <p>Then I receive the following:</p>
  
  <blockquote>
    <p>WARNING: Install failed. Rolling back...
    Executing nuget actions took 13.44 sec
    Package 'Microsoft.EntityFrameworkCore.Tools.DotNet 1.0.0' has a package type 'D
    otnetCliTool' that is not supported by project 'C:\Program Files (x86)\Jenkins\w
    orkspace\api.XXX.com\XXXProject'.`</p>
  </blockquote>
  
  <p>Then if I run the dotnet ef command, I get this:</p>
  
  <blockquote>
    <p>C:\Program Files (x86)\Jenkins\workspace\api.desully.com\deSullyAPI_Core>dotnet ef update database </p>
    
    <p>Version for package <code>Microsoft.EntityFrameworkCore.Tools.DotNet</code> could not be re solved.</p>
  </blockquote>
  
  <p>Update #2</p>
  
  <p>I noticed that my dev machine has different SDK versions in it than the version on the server</p>
  
  <p>Dev Box
  <a href="https://i.stack.imgur.com/ZtUKA.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ZtUKA.png" alt="enter image description here"></a></p>
  
  <p>Production Box
  <a href="https://i.stack.imgur.com/I02vk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/I02vk.png" alt="enter image description here"></a></p>
  
  <p>I'm assuming that the problem is that 1.0.1 doesn't have Microsoft.EntityFrameworkCore.Tools.DotNet in it? Isn't it strange that the older version does?</p>
  
  <p><strong>Update 3</strong></p>
  
  <p>So fyi - I went to the <a href="https://www.microsoft.com/net/download/core#/sdk" rel="noreferrer">Microsoft Site</a> to try to download the 1.0.0 version of the SDK (since it didn't seem to be installed on my server). Unfortunately, the MS site seems to force feed me the 1.0.1 version (which doesn't contain the EF stuff I need?).</p>
  
  <p>I tried copying the 1.0.0 dir from my dev box to the production server, but that also didn't seem to work. What am I missing here?</p>