MapsterMapper / Mapster

A fast, fun and stimulating object to object Mapper
MIT License
4.3k stars 328 forks source link

[Bug?] serviceCollection.AddMapster(); is missing -- v. 7.3.0 #525

Closed jeffward01 closed 1 year ago

jeffward01 commented 1 year ago

Hello all!

I am unsure if this is a bug, or a caching issue.. As you can see, I have installed:

I try and perform services.AddMapster(); and it is 'not found. Please look at my using statements and set-up.

image

I have restarted Rider a few times in attempt to clear the package cache, incase it is a cache issue, and the issue persists.

Strangely - I can add the dependency manually like: services.AddTransient<IMapper, Mapper>(); and it works fine.

See here:

image

Here is my .csproj file: image

Note: Riok.Mapperly and MapTo are other mapping libraries I was testing out.

I then proceeded to debug by installing the 'pre-release' versions of Mapster, the issue still persisted:

image


Is this a bug? How can I help you debug this.

Thanks all

andrerav commented 1 year ago

AddMapster() is scheduled for the upcoming v7.4.0. I think it should be available in the latest prerelease package though.

jeffward01 commented 1 year ago

AddMapster() is scheduled for the upcoming v7.4.0.

Sounds good thanks!

available in the latest prerelease package though.

I don't think so, in that last screenshot I tested it with the latest pre-release versions and it was not there.


Sounds good, we can close this as it is not a bug.

Thanks

DumboJetEngine commented 5 months ago

I might be missing something, but v.7.4.0 doesn't seem to have it either now. :\

iMuhammadMustafa commented 5 months ago

I might be missing something, but v.7.4.0 doesn't seem to have it either now. :\

I can't use it too