2017-08-01 253 views
1

如何确定在不添加绑定到app.config的情况下修复此引用的位置?考虑app.config重映射的程序集没有app.config映射

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:

+0

你必须通过其他方式。 –

回答

3

如何确定在哪里解决,不添加绑定到的app.config这个参考?

你可以试着改变“MSBuild项目生成输出的详细程度”为“详细”或以上的检查细节错误日志。通过工具 - >选项...->项目和解决方案 - >构建并运行。设置MSBuild项目编制输出详细级别详细或以上。构建项目并在输出窗口中检出错误日志。 ResolveAssemblyReferences任务(这是MSB3247从其中发起的任务)应该可以帮助您调试此特定问题。

enter image description here

然后去与旧版本的项目,除去参考,然后添加正确的引用。