我们需要Automapper和Automapper.Net4 dlls使用Automapper吗? [英] Do we need both Automapper and Automapper.Net4 dlls to use Automapper?

查看:344
本文介绍了我们需要Automapper和Automapper.Net4 dlls使用Automapper吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要Automapper和Automapper.Net4 dll在一起使用我们的代码中的Automaper功能。

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

我的意思是我们不能只有一个dll。首次使用Automapper。

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

需要帮助。

提前感谢

推荐答案

所有你需要做的是做安装包AutoMapper,你设置。由于AutoMapper支持所有主要的.NET平台,因此特定于您的平台的事物在特定于平台的程序集中。这是构建跨平台库的一种非常常见的方法。

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.

简而言之,你不应该关心,因为NuGet会为你处理一切。它对你作为一个用户是完全透明的。您无需执行任何额外操作即可利用平台特有的功能。

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.

这篇关于我们需要Automapper和Automapper.Net4 dlls使用Automapper吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆