如何安装 .net 3.5 的 Automapper
我想将 Automapper 与 .net 3.5 一起使用。
我在 Git hub 上找到了一个分支,感谢 作者 Jimmy Bogard 的这篇文章:
...但我不知道如何安装它。
.net 4 版本是使用 nuget 安装的。
有人知道我如何安装 .net 3.5 版本吗?
我自己构建它并将其用作我自己的项目吗?
如果是这样我该如何构建它?我需要创建 NuGet 包吗?
I would like to use Automapper with .net 3.5.
I have found a branch on Git hub, thanks to this post by the creator Jimmy Bogard:
...but I can't figure out how to install it.
The .net 4 version is installed using nuget
Anyone know how I install the .net 3.5 version?
Do I just build it myself, and use it as my own project?
If so how do I build it? Do I need to create a NuGet package?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
https://github.com/downloads/AutoMapper/AutoMapper/AutoMapper.dll
该 .dll 是 1.1 版本,根据该网站,它是最新的 .net 3.5 版本。只需在您的项目中引用它,它就应该可以工作。
https://github.com/downloads/AutoMapper/AutoMapper/AutoMapper.dll
This .dll is version 1.1 which according to the site is the last .net 3.5 version. Just reference it in your project and it should work.
无需自己构建源。 AutoMapper 1.1 可在 NuGet 上使用 http://nuget.org/packages/AutoMapper/1.1.0.118< /a>
PM 控制台命令是
下午>安装包 AutoMapper -版本 1.1.0.118
No need to build the source yourself. AutoMapper 1.1 is available on NuGet at http://nuget.org/packages/AutoMapper/1.1.0.118
PM Console command is
PM> Install-Package AutoMapper -Version 1.1.0.118
是的,尽管您不需要在解决方案中包含 AutoMapper 项目;
不需要 NuGet 包。
您需要从此处下载 AutoMapper for .net3.5 的源代码。
下载后,您可以打开
src
文件夹下的sln
文件并构建AutoMapper项目(只需该项目即可)然后您可以复制生成的dll(即在
src\AutoMapper\bin\Debug
) 到您的共享 lib 文件夹并引用它。Yes, although you don't need to include the AutoMapper project in your solution;
NuGet package not required.
You need to download the source for AutoMapper for .net3.5 from here
Once downloaded, you can open the
sln
file under thesrc
folder and build the AutoMapper project (just that project will do)You can then copy the dll produced (i.e., found at
src\AutoMapper\bin\Debug
) to your shared lib folder and reference that.