Skip to content

Generate DTO objects in separate project #125

@cjakobsen

Description

@cjakobsen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions