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

CRUD Code generator Error #120

Closed indexlang closed 3 years ago

indexlang commented 3 years ago

there is a error when I run the generator new project and a simple entity public class AssessmentDepartment : Entity { public virtual string Name { get; private set; } public virtual string PlusInfo { get; private set; }
} the Log: `[17:00:19 DBG] FileFinderStep Input [searchFileName]: 'AgriCAMVCMenuContributor.cs'

[17:00:20 ERR] Error while invoking activity activity-55 of workflow f82bd7aa9a9a4f5eb127d501cc8943d3 System.InvalidOperationException: Sequence contains more than one element at System.Linq.ThrowHelper.ThrowMoreThanOneElementException() at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable1 source) at EasyAbp.AbpHelper.Steps.Common.FileFinderStep.OnExecuteAsync(WorkflowExecutionContext context, CancellationToken cancellationToken) in /home/runner/work/AbpHelper.CLI/AbpHelper.CLI/src/AbpHelper/Steps/Common/FileFinderStep.cs:line 49 at Elsa.Services.ActivityInvoker.InvokeAsync(WorkflowExecutionContext workflowContext, IActivity activity, Func2 invokeAction) [17:00:20 ERR] Error activity: { "SearchFileName": { "Syntax": "JavaScript", "Expression": "${ProjectInfo.Name}MenuContributor.cs", "Type": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" }, "Name": null } `

wakuflair commented 3 years ago

You may have multiple AgriCAMVCMenuContributor.cs files. Delete unused files or use --excude option to exclude search folders.

indexlang commented 3 years ago

when I try a new project,the problem disappeared.