question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet tool aspnet-codegenerator looks for executable at wrong path

See original GitHub issue

From @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:closed
  • Created 5 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

10reactions
wli3commented, Dec 14, 2018

@guardrex use an older version as the following dotnet tool install --global dotnet-aspnet-codegenerator --version 2.1.6

8reactions
wli3commented, Jan 14, 2019

2.2.1 is shipped with the fix. Closing

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet tool aspnet-codegenerator looks for executable at ...
When trying to run the scaffolder command with the help option, though, I'm getting this error message: > dotnet aspnet-codegenerator --help The ...
Read more >
Troubleshoot .NET tool usage issues
If you're trying to run a global tool, check that the PATH environment variable on your machine contains the path where you installed...
Read more >
dotnet tool aspnet-codegenerator looks for executable at ...
[Solved]-dotnet tool aspnet-codegenerator looks for executable at wrong path-.net-core ... Now try to run the command. It works for me. P.S: I am...
Read more >
Cannot debug net6.0-macos Apps - Developer Community
You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH. It looks...
Read more >
InspectCode Command-Line Tool
NET framework to load the application in partial trust, which means it won't load or run correctly. Run the following command: InspectCode.exe ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found