Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use generate-proxy get more error #4051

Closed
snowchenlei opened this issue May 22, 2020 · 8 comments · Fixed by #4055
Closed

use generate-proxy get more error #4051

snowchenlei opened this issue May 22, 2020 · 8 comments · Fixed by #4055
Assignees
Milestone

Comments

@snowchenlei
Copy link
Contributor

in c#,I defined a dto

public class UserListDto : EntityDto<int>
    {
        public string RealName { get; set; }
    }

Next use abp generate-proxy.I get error!
image
The resulting ts files are as follows:

  1. in user-list-dto.ts
import { EntityDto } from '@abp/ng.core';
export class UserListDto extends EntityDto<System.Int32> {
  realName: string;
  id: number;

  constructor(initialValues: Partial<UserListDto> = {}) {
    super(initialValues);
  }
}
  1. in int32.ts
import { EntityDto } from '@abp/ng.core';
export class Int32 extends EntityDto {
  id: number;

  constructor(initialValues: Partial<Int32> = {}) {
    super(initialValues);
  }
}

The above is an error with upgrade 2.8.0

@snowchenlei
Copy link
Contributor Author

@maliming in 2.9. The problem still exists.

@maliming
Copy link
Member

maliming commented Jun 8, 2020

Have you upgraded abp cli to 2.9?

dotnet tool list -g

Package Id                            Version      Commands
------------------------------------------------------------------------------
volo.abp.cli                          2.9.0        abp

@snowchenlei
Copy link
Contributor Author

image
yes

@snowchenlei
Copy link
Contributor Author

And the generate int32.ts was never used

image

@maliming
Copy link
Member

maliming commented Jun 8, 2020

Are these files newly generated?

@snowchenlei
Copy link
Contributor Author

I first deleted the old file.
second use abp generate-proxy --apiUrl url --o test Rebuild

@maliming
Copy link
Member

maliming commented Jun 9, 2020

The 3.0 milestone will refactor generate-proxy.

@sebitsi
Copy link

sebitsi commented Jun 9, 2020

The 3.0 milestone will refactor generate-proxy.

@maliming What exactly this mean ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants