dotnet tool aspnet-codegenerator looks for executable at wrong path
See original GitHub issueFrom @tbureck on December 8, 2018 23:16
I’m currently following this guide in order to scaffold Identity in my existing ASP.NET Core project. When trying to run the scaffolder command with the help option, though, I’m getting this error message:
> dotnet aspnet-codegenerator --help
The application to execute does not exist: 'C:\Users\Tim\.dotnet\tools\.store\dotnet-aspnet-codegenerator\2.2.0-rtm-35687\dotnet-aspnet-codegener
ator\2.2.0-rtm-35687\tools\netcoreapp2.1\any\dotnet-aspnet-codegenerator.dll'.
I’ve checked the .dotnet\tools.store directory and the tool seems to be installed correctly. BUT, it is installed in a 2.2.0
directory instead of the 2.2.0-rtm-35687
directory, which dotnet tool is looking in.
I’ve opened a thread on Stackoverflow as well and someone else seems to have the same issue, which is why I’m creating this issue.
Why is it that dotnet tool
is looking in the 2.2.0-rtm-35687
sub directory instead of the 2.2.0
where it is actually installed?
Edit: my dotnet version is 2.2.100
Copied from original issue: aspnet/Scaffolding#932
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (6 by maintainers)
Top GitHub Comments
@guardrex use an older version as the following
dotnet tool install --global dotnet-aspnet-codegenerator --version 2.1.6
2.2.1 is shipped with the fix. Closing