EasyAbp / AbpHelper.CLI

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

First use cli to generate a project, and then generate module under the project directory,cannot generate crud files with error:System.NotSupportedException: Unknown ABP project structure. #201

Closed indexlang closed 1 year ago

indexlang commented 1 year ago

Conont reopen from #200 Sorry, my problem description may not be clear. First use abp cli to generate a project, and then generate module under the project directory: abp add-module CompanyName.ModuleA --new --add-to-solution-file and then the project like image there is no .Host.Shared.csproj.

gdlcf88 commented 1 year ago

You mean generate CRUD for the added module projects?

AbpHelper determines a module solution type by finding the "*.Host.Shared.csproj" file since some older modules don't have the "Installer" project. Maybe we can check both the "*.Host.Shared.csproj" and "*.Installer.csproj" files for your case.

Do you want to create a PR for that?

indexlang commented 1 year ago

Okay, I'll do it after home office