EasyAbp / AbpHelper.CLI

Providing code generation and more features to help you develop applications and modules with the ABP framework.
MIT License
284 stars 94 forks source link

CRUD operation faced with error #238

Open naderjavid opened 1 week ago

naderjavid commented 1 week ago

after running below command abphelper generate crud Todo -d C:\src\temp i got this error

[12:46:49 DBG] Build started... [12:46:59 DBG] Build failed. Use dotnet build to see the errors. [12:46:59 ERR] Error while invoking activity activity-91 of workflow 0975d5a3c21b4d7db18ceeba7b1e63ff EasyAbp.AbpHelper.Core.Steps.Common.RunningCommandFailedException: Exception of type 'EasyAbp.AbpHelper.Core.Steps.Common.RunningCommandFailedException' was thrown. at EasyAbp.AbpHelper.Core.Steps.Common.RunCommandStep.OnExecuteAsync(WorkflowExecutionContext context, CancellationToken cancellationToken) in /home/runner/work/AbpHelper.CLI/AbpHelper.CLI/src/AbpHelper.Core/Steps/Common/RunCommandStep.cs:line 26 at Elsa.Services.ActivityInvoker.InvokeAsync(WorkflowExecutionContext workflowContext, IActivity activity, Func2 invokeAction) [12:46:59 ERR] Error activity: { "Command": { "Syntax": "JavaScript", "Expression": "dotnet ef migrations add Added${EntityInfo.Name} -p \"${MigrationProjectFile}\" -s \"${StartupProjectFile}\"`", "Type": "System.String, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" }, "Name": "AddMigration" }

naderjavid commented 1 week ago

error reason is

image

The "ConfigureMainMenuAsync" need async

naderjavid commented 1 week ago

we have error in test part too

image

based on project sample it should be like

image

naderjavid commented 1 week ago

I've fixed the errors encountered during CRUD operations in pull request 239