Open Closed

Abp generate csharp client proxy error #6457


User avatar
0
nhontran created
  • ABP Framework version: v5.2.2
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Hi, I'm trying to generate the C# API client proxy code with included DTOs. I've tried it both with and without the '--without-contracts' parameter, but the DTO classes are still not being generated

Could you please help us check?


6 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please upgrade your CLI to the latest.

  • User Avatar
    0
    nhontran created

    Hi @maliming,

    I have upgraded to the latest version and got this error:

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share the json result of https://your_api_website/api/abp/api-definition?includeTypes=true?

    liming.ma@volosoft.com

    Thanks.

  • User Avatar
    0
    nhontran created

    Hi @maliming,

    I have sent you the api-definition file via email as requested.

    Thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I see, you have to upgrade your abp package to >= 7.0.0

    The without-contracts feature was introduced on 7.0.0

    https://github.com/abpframework/abp/issues/13613

  • User Avatar
    0
    nhontran created

    Hi @maliming,

    Noted. Thanks for the support.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38