gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 11:38:06 25 4
gpt4 key购买 nike

如何确定在何处修复此引用而不添加到 app.config 的绑定(bind)?
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:\Production\packages\System.Runtime.Serialization.Primitives.4.3.0\lib\net46\System.Runtime.Serialization.Primitives.dll] to solve conflict and get rid of warning.
12>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.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:

最佳答案

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



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

enter image description here

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

关于.net - 考虑在没有 app.config 映射的情况下对程序集进行 app.config 重新映射,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45444112/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com