Closed xaberue closed 1 year ago
I'm facing the same issue when I'm using dotnet 7
Was the Mapster.Tool installed using the pre-release version?
dotnet tool install Mapster.Tool --version 8.4.0-pre05
I am successfully using .Net 7 with Mapster 7.4.0-pre05 and Mapster.Tool 8.4.0-pre05.
That's correct @stagep. @Xelit3 I cloned your repo and verified that upgrading to Mapster.Tool version 8.4.0-pre06 fixes the problem.
Sorry for the delay replying it, I left it on hold for a couple of weeks.
Yes it worked once the Mapster.Tool was installed with the pre-release version (I tried with 8.4.0-pre05 at leastand it worked perfectly fine)
Many thanks for the support!
Hi Amazing Mapster team,
I wanted to expose you the case that I have, with which I am currently stuck and I do not quite understand the reason.
I'm trying to implement Mapster using the benefits of the code generation.
Following the documentation provided, I created the dotnet-tools file, installed mapster.tool added the required code in csproj file, I've tried with and without AfterBuild but the final result is the same. (Below code using AfterBuild )
At the end, I end up always with the same issue:
I'm using .NET7 console project, I tried using Mapster 7.3.0 and 7.4.0-pre05, both with similar result.
I also tried specifying namespace in the model, extension and maper exec commands, same result
I'm trying to use Fluent API flavour since the POC has the models in a different assembly, similar scenario of our real world projects.
I'm sure that I'm missing something, but with the information that I can extract from the output and the similar issues reported I'm not able to progress on it.
Issues checked:
286
319
495
The entire code is available here to check it
Many thanks in advance for your support