AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

i Got No executable found matching command "dotnet-aspnet-codegenerator" this error i have tried more please help to get out here!

Open touhidulfahim opened this issue 8 years ago • 3 comments

i Got No executable found matching command "dotnet-aspnet-codegenerator" this error i have tried more please help to get out here!


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

touhidulfahim avatar Sep 17 '18 13:09 touhidulfahim

Install the latest version of the .NET Core SDK But not the preview version. It's no longer a <DotNetCliToolReference/> element. It's a global tool. Or you ran the command from outside the project directory.

Rick-Anderson avatar Sep 18 '18 02:09 Rick-Anderson

Same problem here on Ubuntu 18.10. Everything worked fine up until the call to the "dotnet aspnet-codegenerator ..." line using SDK 2.2. I have the "dotnet ef ..." subset but no "aspnet-codegenerator" at all. And I'm in the project directory folder. If I'm missing something, then I have no idea what.

byroniac avatar Dec 06 '18 22:12 byroniac

This can be an error in your path, you need to restart the terminal after you installed dotnet, at least for me that fixed the problem. If not, check if the executable exists in ~.dotnet\tools and can be used directly.

And if you are using vs code, you need to restart vscode completely for this to work

Joniator avatar Mar 14 '19 09:03 Joniator