Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do we need both Automapper and Automapper.Net4 dlls to use Automapper?

Do we need Automapper and Automapper.Net4 dlls together to use the Automaper functionality in our code.

I mean can't we just have the one dll of them both. Using Automapper for the first time.

Need help.

Thanks in advance

like image 757
Sumit Datta Avatar asked Jan 22 '15 06:01

Sumit Datta


2 Answers

All you need to do is do "Install-Package AutoMapper" and you're set. Because AutoMapper supports all major .NET platforms, things that are specific to your platform are in a platform-specific assembly. This is a very common approach for building cross-platform libraries.

In short, you shouldn't care, because NuGet takes care of everything for you. It's completely transparent to you as a user. You don't have to do anything extra to take advantage of the platform-specific features.

like image 53
Jimmy Bogard Avatar answered Sep 20 '22 16:09

Jimmy Bogard


Why not ask Jimmy? AutoMapper using Portable Class Libraries.

From looking at the NuGet package, it would appear Automapper.dll is the core (it's common to all platform libraries), while Automapper.Net4.dll is the platform specific - both are necessary.

like image 41
John Castleman Avatar answered Sep 18 '22 16:09

John Castleman