EniacMlezi
EniacMlezi
I just ran into the same problem. Mapster.Tool on linux is failing.
For anyone wondering why this usecase, I ran into it in the MapIdentityApi Endpoints: https://github.com/dotnet/aspnetcore/blob/e2e689acc6e17371d1546556825c533f35446e1d/src/Identity/Core/src/IdentityApiEndpointRouteBuilderExtensions.cs#L90
https://github.com/MapsterMapper/Mapster/issues/528 would also solve the problem in my case.
> @EniacMlezi can you mention the complete source code, please The complete source code is the codegen sample in this repository (Sample.CodeGen), but with Person.Id made required and the C#...
Check this: for code sample: https://github.com/EniacMlezi/Mapster/commit/38401039547e1e5d800b634d92d5765c5eb28ae7
Using the after map feature would not work in the case where PersonDto.Age is **`required`** and when using a non "void mapping method" (when not mapping to existing object instance)...
Maybe fixing #103 would also cover this?
 Having the same problem here