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

Generate DTO objects in separate project #125

Open
cjakobsen opened this issue Aug 31, 2021 · 0 comments
Open

Generate DTO objects in separate project #125

cjakobsen opened this issue Aug 31, 2021 · 0 comments

Comments

@cjakobsen
Copy link
Contributor

cjakobsen commented Aug 31, 2021

Problem
For solutions where a server is generated and a custom client is constructed in the same solution there currently is no good way of sharing the generated DTO objects. Current options include copy the files, sharing using VS feature file share.

Possible solution
Change the structure of the generated projects to generate a dedicated DTO project containing only the DTO objects and enumerations. This will enable referencing this project from a custom client living inside the server solution.
It could be controlled by an option but my suggestion will be not to do that as it should not have an effect for existing projects except maybe for a name class on the new project.

Additional context
This will affect the client generation as well. It will make sense to update this project to use the new project as well.

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

No branches or pull requests

1 participant