【发布时间】:2014-11-28 13:35:01
【问题描述】:
我们有天蓝色的服务。它的解决方案包括几个项目。一些项目引用了 azure.storage 版本。 4.2.1。基于 nugget.org,azure.storage 的依赖项是 odata、edm 等 >= 5.6.0。我们想用最新的一个5.6.3。因此,我们在项目中添加了对 5.6.3 版中所有依赖程序集的引用(尽管 ILSPY 显示依赖项适用于 5.6.0 版)。但不幸的是,加载的 dll 来自 gac,版本为 5.6.0。 (不是来自我们用最新版本引用的路径) dll是如何加载的?:
- 基于 Force load an assembly from the /bin and not the GAC? 和 http://msdn.microsoft.com/en-us/library/yx7xezcf.aspx - 它从 GAC firstable 加载程序集
- 基于 http://blogs.msdn.com/b/manishagarwal/archive/2005/09/28/474769.aspx 和 Microsoft.Common.CurrentVersion.targets,它应该首先在 bin 目录中查找 - 而不是 gac。
什么是正确的?以及我如何(完全)实现我尝试做的事情?
【问题讨论】:
标签: c# asp.net azure nuget gac