考虑在没有 app.config 映射的情况下对程序集进行 app.config 重新映射

Consider app.config remapping of assembly with no app.config mapping(考虑在没有 app.config 映射的情况下对程序集进行 app.config 重新映射)

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

问题描述

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

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

考虑从版本4.1.1.0"[] 到版本4.1.2.0"[F:ProductionpackagesSystem.Runtime.Serialization.Primitives.4.3.0lib et46System.Runtime.Serialization.Primitives.dll] 解决冲突并摆脱警告.12>C:Program Files (x86)MSBuild14.0inMicrosoft.Common.CurrentVersion.targets(1820,5): 警告MSB3247: 发现同一依赖程序集的不同版本之间存在冲突.在 Visual Studio 中,双击此警告(或选择它并按 Enter)以修复冲突;否则,将以下绑定重定向添加到应用程序配置文件中的运行时"节点:

Consider app.config remapping of assembly "System.Runtime.Serialization.Primitives, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.1.1.0" [] to Version "4.1.2.0" [F:ProductionpackagesSystem.Runtime.Serialization.Primitives.4.3.0lib et46System.Runtime.Serialization.Primitives.dll] to solve conflict and get rid of warning. 12>C:Program Files (x86)MSBuild14.0inMicrosoft.Common.CurrentVersion.targets(1820,5): warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file:

推荐答案

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

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

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

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 重新映射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:考虑在没有 app.config 映射的情况下对程序集进行 app.config 重新映射

基础教程推荐