title: Why can't I install Microsoft.VisualStudio.Web.CodeGeneration.Tools 2.0.1 via nuget? Asp.NET CORE 2.0.1
body: <p>I have added the reference to my project.csproj file as indicated on <a href="https://stackoverflow.com/questions/41450148/no-executables-found-matching-command-dotnet-aspnet-codegenerator">S.O.</a> and in the ms docs <a href="https://docs.microsoft.com/en-us/aspnet/core/data/ef-rp/intro" rel="nofollow noreferrer">tutorial</a>:</p>
  <pre><code>&lt;ItemGroup&gt;
      &lt;DotNetCliToolReference Include=&quot;Microsoft.VisualStudio.Web.CodeGeneration.Tools&quot; Version=&quot;2.0.1&quot; /&gt;
    &lt;/ItemGroup&gt;
  </code></pre>
  <p>running <code>dotnet restore</code> claims to succeed. But the <code>dotnet aspnet-codegenerator</code> command can't be found and in the manage nuget packages, the CodeGeneration.Tools isn't installed and manually installing gives the error:
  <code>Package restore failed. Rolling back package changes for 'ContosoUniversity'.</code></p>
  <hr />
  <p>This appears to be from a version compatibility issue that I don't understand or know how to fix. I have installed in my dependencies Microsoft.NETCore.App 2.0.3
  and Microsoft.NETCore.APP 2.0.3 and everything else is 2.0.1. (CodeGeneration.Design, CodeGeneration.Utils etc... and running at Package Management Console <code> Install-Package Microsoft.VisualStudio.Web.CodeGeneration.Tools</code> Throws the error:</p>
  <pre><code> GET https://api.nuget.org/v3/registration3-gz-semver2/microsoft.visualstudio.web.codegeneration.tools/index.json
    OK https://api.nuget.org/v3/registration3-gz-semver2/microsoft.visualstudio.web.codegeneration.tools/index.json 166ms
  Restoring packages for C:\Users\sticker592\Documents\Visual Studio 2017\Projects\ContosoUniversity\ContosoUniversity\ContosoUniversity.csproj...
  Install-Package : Detected package downgrade: Microsoft.NETCore.App from 2.0.3 to 2.0.0. Reference the package directly from the project to 
  select a different version. 
   ContosoUniversity -&gt; Microsoft.VisualStudio.Web.CodeGeneration.Tools 2.0.1 -&gt; Microsoft.NETCore.App (&gt;= 2.0.3) 
   ContosoUniversity -&gt; Microsoft.NETCore.App (&gt;= 2.0.0)
  At line:1 char:1
  + Install-Package Microsoft.VisualStudio.Web.CodeGeneration.Tools
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
   
  Install-Package : Package restore failed. Rolling back package changes for 'ContosoUniversity'.
  At line:1 char:1
  + Install-Package Microsoft.VisualStudio.Web.CodeGeneration.Tools
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
  </code></pre>
  <hr />
  <p>Downgrading everything to 2.0.0 allows me to install CodeGeneration.Tools in Nuget but I still get the error: <code>dotnet : No executable found matching command &quot;dotnet-aspnet-codegenerator&quot;</code></p>