安装VS11后,我开始收到以下错误:
Consider app.config remapping of assembly "FSharp.Core, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "2.0.0.0" [C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\2.0\Runtime\v2.0\FSharp.Core.dll] to Version "4.0.0.0" [C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\2.0\Runtime\v4.0\FSharp.Core.dll] to solve conflict and get rid of warning. C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1490,5): warning MSB3247: Found conflicts between different versions of the same dependent assembly.
我应该怎么做?我不知道如何进行这样的重新映射。
最佳答案
下面是我认为执行建议的示例 app.config。但是,您的项目中有什么,有什么 FSharp.Core 引用?你的目标是 .Net 4.5 或 4.0 还是什么?该项目是否引用了一些较旧的 F# 库?这通常是因为两个项目引用了不同版本的 FSharp.Core.dll,例如检查 <Reference>
.fsproj 文件中的节点。
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="FSharp.Core" publicKeyToken="b03f5f7f11d50a3a"
culture="neutral"/>
<!-- <bindingRedirect oldVersion="0.0.0.0-2.9.9.9" newVersion="4.3.0.0"/> -->
<bindingRedirect oldVersion="2.0.0.0" newVersion="4.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
关于f# - F# 中的 "Consider app.config remapping of assembly ..."警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7951560/