Closed Akku-21 closed 1 year ago
What do you mean by "...not compatible with Automapper v 11.0.0"? Does it no compile, or fails when used?
It compiles but throws in service registration with a Method not found: 'Void AutoMapper.Profile.ForAllPropertyMaps... Exception.
regards Jan
Difficult - AuthoMapper 11.0.0. doesn't support net6 - see this.
Not going to look at that for a while, so use AuthMapper 10.1.1 for now.
Another note to anyone researching this issue. I had upgraded from AutoMapper.Data from version 5.0.0 to 6.0.0 that brings AutoMapper 11.0.1 along with it. Same issue as above.
The following call fails: services.ConfigureGenericServicesEntities(new Type[] { ... }).ScanAssemblesForDtos( ... ).RegisterGenericServices();
System.MissingMethodException
HResult=0x80131513
Message=Method not found: 'Void AutoMapper.Profile.ForAllPropertyMaps(System.Func2<AutoMapper.PropertyMap,Boolean>, System.Action
2<AutoMapper.PropertyMap,AutoMapper.IMemberConfigurationExpression>)'.
Source=GenericServices
StackTrace:
at GenericServices.Setup.Internal.MappingProfile..ctor(Boolean addIgnoreParts)
at GenericServices.Setup.Internal.SetupDtosAndMappings..ctor(IGenericServicesConfig publicConfig)
at GenericServices.Setup.ConfigureGenericServices.ScanAssemblesForDtos(IGenericServicesSetupPart1 setupPart1, Assembly[] assembliesToScan)
at ... .Startup.ConfigureServices(IServiceCollection services) in C:\ ... \Startup.cs:line ...
I just dropped in a PR that resolves this issue.
Hi @Jerrill,
Sorry I missed your comment / PR - I must have been busy around the time an missed this. Sorry about that.
I will updating all my libraries to support NET7 and I will try your PR and see how it goes.
Hi @Jerrill,
Version 5.2.0 of this library is out with your PR. Thanks for your help.
Hi there,
I just wanted to let you know, that your latest release 5.1.1 is not compatible with Automapper v 11.0.0.
regards Jan