Starts in:
1 DAY
21 HRS
29 MIN
40 SEC
Starts in:
1 D
21 H
29 M
40 S
Open Closed

ABP Suite Code Gen Issue, can not compile #6926


User avatar
0
okains created
  • ABP Framework version: v8.0.5

  • UI Type: Blazor Server

  • Database System: EF Core (SQL Server)

  • Tiered (for MVC) or Auth Server Separated (for Angular): no

  • Exception message and full stack trace: No overload for method 'ToString' takes 1 arguments

  • Steps to reproduce the issue:

In ABP Suite, I just added an additional field on one of my entities, clicked Save And Generate and the codegen has introduced a bug in the code that prevents me from compiling. Seems it has added a ToString("d") to my enum fields, and the compiler obv does not like this.

Assuming this is a bug in codegen, is there a workaround that I can use here to get past this, I am on a tight deadline to deliver some functionality.


3 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, for a quick workaround, please remove the .ToString("d") statement from the faulty lines and add (int) before the context. statement. For example:

    {(int)context.Message.SenderUserType}
    

    I'll check and fix this problem for ABP Suite. Thanks for reporting.

  • User Avatar
    0
    okains created

    OK that will work for now, can you let me know how to track this so I know when it is fixed?

    And since this is a bug can you refund my question credit?

    Thanks,

    Karim

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    OK that will work for now, can you let me know how to track this so I know when it is fixed?

    And since this is a bug can you refund my question credit?

    Thanks,

    Karim

    I have refunded your ticket, just now. Thanks again for reporting the problem. This problem has been fixed and will included in the first upcoming release. (probably with v8.1.0)

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