EasyAbp / AbpHelper.CLI

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

Error while invoking activity activity-81 of workflow 930eb14078264b0fa86b1ce4f717bb9d #140

Closed devrazec closed 2 years ago

devrazec commented 3 years ago

Hi, I got this error after running the command: abphelper generate crud Patient -d C:\Projects\MSSQL\Devrazec.Application

18:06:00 ERR] Error while invoking activity activity-81 of workflow 930eb14078264b0fa86b1ce4f717bb9d 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 D:\a\AbpHelper.CLI\AbpHelper.CLI\src\AbpHelper.Core\Steps\Common\RunCommandStep.cs:line 26 at Elsa.Services.ActivityInvoker.InvokeAsync(WorkflowExecutionContext workflowContext, IActivity activity, Func2 invokeAction) [18:06:00 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=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" }, "Name": "AddMigration" }

wakuflair commented 3 years ago

There should be more error info before the first log, can you provide them?

devrazec commented 3 years ago

Hi, thanks for helping me. I got some errors in the Domain Layer too.

Screen Shot 2021-03-15 at 10 30 16

logs.txt

devrazec commented 3 years ago

Here I guess some code is missed.

Screen Shot 2021-03-15 at 11 01 56
wakuflair commented 3 years ago

Did you define the properties of your entity in camelCase? That would cause compilation errors. Try to use PascalCase, and run abphelper again.