You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The C# code that is generated by the generate-proxy command is sometimes invalid (does not build) when DTOs contain certain combination of generic arguments.
Reproduction Steps
Tested using ABP CLI 8.0.4:
Create a new project using the default settings abp new Abp.ReproProxyGen. Run the Db Migrator to initialize the database.
Create the following DTO in the Application.Contracts project:
Run the proxy generation command. For example: abp generate-proxy -t csharp -u https://localhost:44385 -wd .\src\Abp.ReproProxyGen.HttpApi.Client\
Expected behavior
The proxy generation command creates new files in the HttpApi.Client project. After these files are generated, the project can still build.
Actual behavior
The proxy generation command did create the expected files. However, the file containing the DTO has a syntax error that prevents the project from building:
publicclassTestOutputDto{publicDictionary<string,IDictionary<String,IEnumerableString>>> Values {get;set;}// Missing '<' character here: --------------------^}
Regression?
Not that know of
Known Workarounds
Override the C# generation service to provide your own working implementation
Version
8.0.4
User Interface
Common (Default)
Database Provider
EF Core (Default)
Tiered or separate authentication server
None (Default)
Operation System
Windows (Default)
Other information
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Description
The C# code that is generated by the
generate-proxy
command is sometimes invalid (does not build) when DTOs contain certain combination of generic arguments.Reproduction Steps
Tested using ABP CLI 8.0.4:
abp new Abp.ReproProxyGen
. Run the Db Migrator to initialize the database.Application.Contracts
project:Application
project, with a method that returns the DTO we just createdabp generate-proxy -t csharp -u https://localhost:44385 -wd .\src\Abp.ReproProxyGen.HttpApi.Client\
Expected behavior
The proxy generation command creates new files in the
HttpApi.Client
project. After these files are generated, the project can still build.Actual behavior
The proxy generation command did create the expected files. However, the file containing the DTO has a syntax error that prevents the project from building:
Regression?
Not that know of
Known Workarounds
Override the C# generation service to provide your own working implementation
Version
8.0.4
User Interface
Common (Default)
Database Provider
EF Core (Default)
Tiered or separate authentication server
None (Default)
Operation System
Windows (Default)
Other information
No response
The text was updated successfully, but these errors were encountered: