MapsterMapper / Mapster

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

ServiceMapper unable to map using types in different assemblies #593

Closed tswjro closed 1 year ago

tswjro commented 1 year ago

I have registered a configuration that has a mapping between a type implementing a generic and a Poco, upon using the mapper:

_mapper.From(command).AdaptToType()

I receive an error:

CS0012: The type 'Command<,,>' is defined in an assembly that is not referenced. You must add a reference to assembly 'EventFlow, Version=0.81.4483.0, Culture=neutral, PublicKeyToken=null'. CS0012: The type 'Command<,,>' is defined in an assembly that is not referenced. You must add a reference to assembly 'EventFlow, Version=0.81.4483.0, Culture=neutral, PublicKeyToken=null'.