title: Why am I unable to run dotnet tool install --global bla-bla-bla?
body: <p>Specifically, I am trying to run <code>dotnet tool install --global Project2015To2017.Migrate2017.Tool</code> as explained here - <a href="https://github.com/hvanbakel/CsprojToVs2017#as-a-net-core-global-tool" rel="nofollow noreferrer">https://github.com/hvanbakel/CsprojToVs2017#as-a-net-core-global-tool</a></p>
  
  <p>Here is what I get:</p>
  
  <pre><code>c:\Program Files\dotnet\sdk\2.1.4\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.TargetFrameworkInference.targets(135,5): error : The current .NET SDK does not support targeting .NET Core 2.1.  Either target .NET Core 2.0 or lower, or use a version of the .NET SDK that supports .NET Core 2.1. [C:\Users\mkharitonov\AppData\Local\Temp\3sdfphfy.fq0\restore.csproj]
  The tool package could not be restored.
  Tool 'project2015to2017.migrate2017.tool' failed to install. This failure may have been caused by:
  
  * You are attempting to install a preview release and did not use the --version option to specify the version.
  * A package by this name was found, but it was not a .NET Core tool.
  * The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
  * You mistyped the name of the tool.
  </code></pre>
  
  <p>So, I went to <a href="https://www.microsoft.com/net/download/dotnet-core/2.1" rel="nofollow noreferrer">https://www.microsoft.com/net/download/dotnet-core/2.1</a> and installed the .NET Core Installer x64 of SDK 2.1.500. When this did not work I installed the same for Runtime 2.1.6 (do not think it did anything). Anyway, the error message stays and I have no idea what am I expected to do.</p>
  
  <p><strong>EDIT 1</strong></p>
  
  <pre><code>C:\xyz\MyApp [master ≡]&gt; dotnet --list-sdks
  1.0.0-preview2-003131 [C:\Program Files\dotnet\sdk]
  2.1.4 [C:\Program Files\dotnet\sdk]
  2.1.403 [C:\Program Files\dotnet\sdk]
  2.1.500 [C:\Program Files\dotnet\sdk]
  </code></pre>
  
  <p><strong>EDIT 2</strong></p>
  
  <pre><code>C:\xyz\MyApp [master ≡]&gt; dotnet new globaljson --sdk-version 2.1.500
  The template "global.json file" was created successfully.
  C:\xyz\MyApp [master ≡ +1 ~0 -0 !]&gt; cat .\global.json
  {
    "sdk": {
      "version": "2.1.500"
    }
  }
  C:\xyz\MyApp [master ≡ +1 ~0 -0 !]&gt; dotnet tool install --global Project2015To2017.Migrate2017.Tool
  c:\Program Files\dotnet\sdk\2.1.4\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.TargetFrameworkInference.targets(135,5): error : The current .NET SDK does not support targeting .NET Core 2.1.  Either target .NET Core 2.0 or lower, or use a version of the .NET SDK that supports .NET Core 2.1. [C:\Users\mkharitonov\AppData\Local\Temp\lrfiazvp.bxe\restore.csproj]
  The tool package could not be restored.
  Tool 'project2015to2017.migrate2017.tool' failed to install. This failure may have been caused by:
  
  * You are attempting to install a preview release and did not use the --version option to specify the version.
  * A package by this name was found, but it was not a .NET Core tool.
  * The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
  * You mistyped the name of the tool.
  C:\xyz\MyApp [master ≡ +1 ~0 -0 !]&gt;
  </code></pre>
  
  <p><strong>EDIT 3</strong></p>
  
  <pre><code>C:\Users\mkharitonov\AppData\Local\Temp&gt; dotnet --list-sdks
  1.0.0-preview2-003131 [C:\Program Files\dotnet\sdk]
  2.1.4 [C:\Program Files\dotnet\sdk]
  2.1.403 [C:\Program Files\dotnet\sdk]
  2.1.500 [C:\Program Files\dotnet\sdk]
  C:\Users\mkharitonov\AppData\Local\Temp&gt; Test-Path global.json
  False
  C:\Users\mkharitonov\AppData\Local\Temp&gt; cd ..
  C:\Users\mkharitonov\AppData\Local&gt; Test-Path global.json
  False
  C:\Users\mkharitonov\AppData\Local&gt; cd ..
  C:\Users\mkharitonov\AppData&gt; Test-Path global.json
  False
  C:\Users\mkharitonov\AppData&gt; cd ..
  C:\Users\mkharitonov&gt; Test-Path global.json
  False
  C:\Users\mkharitonov&gt; cd ..
  C:\Users&gt; Test-Path global.json
  False
  C:\Users&gt; cd ..
  C:\&gt; Test-Path global.json
  False
  C:\&gt;
  </code></pre>