警告MSB3276 - 不同版本的同一依赖程序集之间发现冲突 [英] warning MSB3276 - Found conflicts between different versions of the same dependent assembly

查看:4828
本文介绍了警告MSB3276 - 不同版本的同一依赖程序集之间发现冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的解决方案包括多个项目,并编译罚款。我使用的NuGet,而我用的是log4net.2.0.0的软件包之一。我最近更新程序包log4net.2.0.3并确信,在属于该溶液的每个项目中,参考被更新。不幸的是,我仍然得到编译过程以下警告:

My solution consists of multiple projects and compiles fine. I'm using nuget and one of the packages that I use is log4net.2.0.0. I've recently updated the package to log4net.2.0.3 and made sure that in each project that belongs to the solution, the reference is updated. Unfortunately I'm still getting the following warning during the compilation process:

(ResolveAssemblyReferences目标) - > C:\ Program Files文件   (86)\的MSBuild \ 12.0 \ BIN \ Microsoft.Common.CurrentVersion.targe   TS(1635,5):警告MSB3276:之间的不同发现的冲突   相同的依赖程序集的版本。请设置   AutoGenerateBindingRedirects属性为true在项目文件。   欲了解更多信息,请参见 http://go.microsoft.com   / fwlink /?LINKID = 294190。

(ResolveAssemblyReferences target) -> C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targe ts(1635,5): warning MSB3276: Found conflicts between different versions of the same dependent assembly. Please set the "AutoGenerateBindingRedirects" property to true in the project file. For more information, see http://go.microsoft.com /fwlink/?LinkId=294190.

与编译时或此警告的更详细的版本/详细程度:详见

or a more elaborate version of this warning when compiling with /verbosity:detailed

考虑组装log4net的,文化的app.config将=中立,   公钥= 669e0ddf0bb1aa2a从版本1.2.11.0[]到版本   1.2.13.0   [Z:\ XXX \包\ log4net.2.0.3 \ LIB \ net40满\ log4net.dll]   以解决冲突并消除警告。 C:\ Program Files文件   (86)\的MSBuild \ 12.0 \ BIN \ Microsoft.Common.CurrentVersion.targets(1635,5):   警告MSB3276:不同版本的实测值之间的冲突   同样的依赖程序集。请设置AutoGenerateBindingRedirects   属性为true在项目文件。欲了解更多信息,请参阅   <一href="http://go.microsoft.com/fwlink/?LinkId=294190">http://go.microsoft.com/fwlink/?LinkId=294190.   [Z:\ XXX \ XXX \ XXX \ xxx.csproj]
  AssemblyFoldersEx位置:   {注册地:SOFTWARE \ Microsoft.NETFramework,V4.5,AssemblyFoldersEx}

Consider app.config remapping of assembly "log4net, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a" from Version "1.2.11.0" [] to Version "1.2.13.0" [Z:\xxx\packages\log4net.2.0.3\lib\net40-full\log4net.dll] to solve conflict and get rid of warning. C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1635,5): warning MSB3276: Found conflicts between different versions of the same dependent assembly. Please set the "AutoGenerateBindingRedirects" property to true in the project file. For more information, see http://go.microsoft.com/fwlink/?LinkId=294190. [Z:\xxx\xxx\xxx\xxx.csproj]
AssemblyFoldersEx location: "{Registry:Software\Microsoft.NETFramework,v4.5,AssemblyFoldersEx}"

我明白它的意思,可惜我不能追查该项目/库仍引用旧版本的log4net的。我明白,我可以通过简单地重新映射的app.config掩盖了警告,但似乎扫到地毯下的问题,而不是真正妥善解决它。

I understand what it means, unfortunately I can't track down which project/library still references the old version of log4net. I understand that I can mask the warning just by simply remapping in app.config, but it seems like sweeping the problem under the rug rather than actually solving it properly.

什么是跟踪凡在我的解决方案我areference老版本的log4net的最佳方法是什么?我已经尝试了所有的明显的,包括通过搜索为版本号的所有文件。我也确信,没有其他nupkgs都依赖关系设置为log4net的这个特定版本。

What is the best way of tracking down where in my solution I have areference to the old version of log4net? I've tried all the obvious including searching through all the files for the version number. I also made sure that no other nupkgs have the dependencies set to this specific version of log4net.

任何帮助将是非常美联社preciated。

Any help would be much appreciated.

推荐答案

感谢我的爸爸和 https://github.com/mikehadlow/ AsmSpy我设法找到了:

Thanks to my dad and https://github.com/mikehadlow/AsmSpy I managed to find that:

参考:log4net的    1.2.11.0由SuperSocket.SocketBase

Reference: log4net 1.2.11.0 by SuperSocket.SocketBase

哈哈!伟大的得心应手的工具!

Haha! Great handy tool!

这篇关于警告MSB3276 - 不同版本的同一依赖程序集之间发现冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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