Base solution for your next web application
Open Closed

Power Tools: Specified command or file was not found #8301


User avatar
0
ITWebTeam created

Hello,

I've been watching the Udemy course and came to the demo for the Power tools. When trying to run them I get the error " Specified command or file was not found"

I'm using the latest AspNetZero with Angular, Visual Studio 2019 and SQL Server.

Below is a screen grab of the Console windows. -> PersonsAppService.cs is being generated. -> IPersonsAppService.cs is being generated. -> PersonConsts.cs is being generated. -> CreateOrEditPersonDto.cs is being generated. -> PersonDto.cs is being generated. -> GetAllPersonsForExcelInput.cs is being generated. -> GetAllForLookupTableInput.cs is being generated. -> GetAllPersonsInput.cs is being generated. -> GetPersonForViewDto.cs is being generated. -> GetPersonForEditOutput.cs is being generated. -> Person.cs is being generated. -> PersonsExcelExporter.cs is being generated. -> IPersonsExcelExporter.cs is being generated. -> AppPermissions.cs is being modified. -> AppAuthorizationProvider.cs is being modified. -> EntityHistoryHelper.cs is being modified. -> AspZeroAngularDemoDbContext.cs is being modified. -> CustomDtoMapper.cs is being modified. Running add-migration...

Welcome to .NET Core 3.1! --------------------- SDK Version: 3.1.100

Telemetry --------- The .NET Core tools collect usage data in order to help us improve your experience. The data is anonymous. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET Core CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry

---------------- Explore documentation: https://aka.ms/dotnet-docs Report issues and find source on GitHub: https://github.com/dotnet/core Find out what's new: https://aka.ms/dotnet-whats-new Learn about the installed HTTPS developer cert: https://aka.ms/aspnet-core-https Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs Write your first app: https://aka.ms/first-net-core-app -------------------------------------------------------------------------------------- Could not execute because the specified command or file was not found. Possible reasons for this include: * You misspelled a built-in dotnet command. * You intended to execute a .NET Core program, but dotnet-ef does not exist. * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH. Running update-database... Could not execute because the specified command or file was not found. Possible reasons for this include: * You misspelled a built-in dotnet command. * You intended to execute a .NET Core program, but dotnet-ef does not exist. * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH. -> persons.component.ts is being generated. -> persons.component.html is being generated. -> create-or-edit-person-modal.component.html is being generated. -> create-or-edit-person-modal.component.ts is being generated. -> view-person-modal.component.html is being generated. -> view-person-modal.component.ts is being generated. -> main.module.ts is being modified. -> main-routing.module.ts is being modified. -> app-navigation.service.ts is being modified. -> service-proxy.module.ts is being modified. -> AspZeroAngularDemo.xml is being modified.

Code generation is complete. Press ENTER to exit...


1 Answer(s)
  • User Avatar
    0
    ITWebTeam created

    Nevermind, this is a duplicate to the Add Migration issue

    https://support.aspnetzero.com/QA/Questions/8253