Base solution for your next web application
Open Closed

Rad Tool: AspNet Zero VS Extension Error #8357


User avatar
0
atlasair created

Generating an Entity failed and it producing errors in the interface. Tried editing it and it seems to have written duplicate code and code that can't compile.

-> ItemsAppService.cs is being generated. -> IItemsAppService.cs is being generated. -> ItemConsts.cs is being generated. -> CreateOrEditItemDto.cs is being generated. -> ItemDto.cs is being generated. -> GetAllItemsForExcelInput.cs is being generated. -> GetAllForLookupTableInput.cs is being generated. -> GetAllItemsInput.cs is being generated. -> GetItemForViewDto.cs is being generated. -> GetItemForEditOutput.cs is being generated. -> Item.cs is being generated. -> ItemsExcelExporter.cs is being generated. -> IItemsExcelExporter.cs is being generated. -> AppPermissions.cs is being modified. -> AppAuthorizationProvider.cs is being modified. -> EntityHistoryHelper.cs is being modified. -> CoreDemoDbContext.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. -> ItemsController.cs is being generated. -> _CreateOrEditModal.cshtml is being generated. -> _CreateOrEditModal.js is being generated. -> _CreateOrEditModal.min.js is being generated. -> CreateOrEditItemViewModel.cs is being generated. -> Index.cshtml is being generated. -> Index.js is being generated. -> Index.min.js is being generated. -> _ViewItemModal.cshtml is being generated. -> ItemViewModel.cs is being generated. -> ItemsViewModel.cs is being generated. -> AppNavigationProvider.cs is being modified. -> AppPageNames.cs is being modified. -> CoreDemo.xml is being modified.

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


4 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    Try dotnet tool install --global dotnet-ef --version 3.1.0

  • User Avatar
    0
    atlasair created

    Now when I run it, it seems to generate the json file but nothing else. The window opens and closes quickly. Here is the log data

    DEBUG 2020-01-27 08:42:58,279 [1 ] dioExtension.Dialogs.EntityGeneratorForm - Generate entity started. DEBUG 2020-01-27 08:42:59,097 [1 ] dioExtension.Dialogs.EntityGeneratorForm - Entity successfully generated.

  • User Avatar
    0
    yekalkan created

    Have you change or deleted the license code in config.json file?

  • User Avatar
    0
    ismcagdas created
    Support Team

    This issue is closed because of no recent activity. Please create a new issue if you are still having this problem.