考虑不使用app.config映射的程序集的app.config重新映射 [英] Consider app.config remapping of assembly with no app.config mapping

查看:349
本文介绍了考虑不使用app.config映射的程序集的app.config重新映射的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何确定在不添加绑定至app.config的情况下修复此引用的位置?

How can I determine where to fix this reference without adding a binding to the app.config?

考虑组装的app.config重映射从版本 4.1.1.0 []到版本 4.1.2.0的 System.Runtime.Serialization.Primitives,文化=中性,PublicKeyToken = b03f5f7f11d50a3a [F:\Production\packages\System.Runtime.Serialization。 Primitives.4.3.0 – lib\net46\System.Runtime.Serialization.Primitives.dll]解决冲突并摆脱警告。
12> C:\ Program Files(x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5):警告MSB3247:发现同一版本的不同版本之间存在冲突依赖装配。在Visual Studio中,双击该警告(或选择它并按Enter)以解决冲突;否则,将以下绑定重定向添加到应用程序配置文件中的运行时节点:$ b​​ $ b

推荐答案


我如何确定在不添加绑定到app.config的情况下修复此引用的位置?

How can I determine where to fix this reference without adding a binding to the app.config?

您可以尝试将 MSBuild项目构建输出的详细程度更改为 详细或更高版本,以检查详细错误日志。为此,请通过工具->选项...->项目和解决方案->构建并运行。将 MSBuild项目构建输出的详细程度设置为详细或更高。生成项目并在输出窗口中签出错误日志。 MSB3247起源的任务ResolveAssemblyReferences任务应该可以帮助您调试此特定问题。

You can try to change the "MSBuild project build output verbosity" to "Detailed" or above to check the detail error log. To do this by Tools -> Options...->Projects and Solutions->Build and Run. Set the MSBuild project build output verbosity level to Detailed or above. Build the project and checkout the error log in the output window. The ResolveAssemblyReferences task, which is the task from which MSB3247 originates, should help you debug this particular issue.

然后转到具有较旧版本的项目,删除引用,然后添加正确的引用。

Then go to the project with the older version, removed the reference, then added the correct reference.

这篇关于考虑不使用app.config映射的程序集的app.config重新映射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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