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.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on June 20, 2025, 11:20