Ends in:
7 DAYS
16 HRS
13 MIN
33 SEC
Ends in:
7 D
16 H
13 M
33 S
Open Closed

abp-generate-proxy-command-create-sub-directory #7401


User avatar
0
aksogut created
  • ABP Framework version: v8.1.4
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I've encountered an issue while using the abp generate-proxy command that I believe needs your attention. Currently, when running the command:

abp generate-proxy -t ng -m productService -u https://localhost:44361 --target ProductService

The CLI creates a product-service subdirectory within the target folder, resulting in a structure like this: projects/product-service/src/lib/proxy/product-service/

However, this additional product-service subdirectory is unnecessary and inconsistent with the structure created by ABP Suite. Ideally, the proxies should be generated directly under the proxy folder, like this:

projects/product-service/src/lib/proxy/

This discrepancy causes inconvenience when switching between ABP CLI and ABP Suite, as it requires manual restructuring of the generated files. Could you please consider modifying the generate-proxy command to avoid creating this extra subdirectory? This change would align the CLI's behavior with ABP Suite and provide a more consistent development experience. Thank you for your attention to this matter. Your continuous efforts in improving the ABP framework are greatly appreciated.


1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can use the --entry-point option

    https://docs.abp.io/en/abp/latest/CLI#options-6

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06