Can't seem to get code generation working #308
-
I get errors like
I can clone Mapperly repo and load the solution into Rider and it works just fine there. I've tried to duplicate all the relevant packages in the project to no avail. I don't see anything in the docs that mentions even having to include |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hmm, now that I look at the samples/, the CarDto class seems to be included -- ie, not generated. Now I'm really confused. |
Beta Was this translation helpful? Give feedback.
-
But I can run all the tests in the Mapperly project both on the command line and within Rider... |
Beta Was this translation helpful? Give feedback.
-
Ok, maybe I have misunderstood. I thought that it would also generate a default DTO if one did not exist (and then I could customize the mapping from there). But that is not the case... ? |
Beta Was this translation helpful? Give feedback.
Mapperly does not generate DTO's. It only generates method bodies for the defined mapping methods containing the mapping code from one type to another.