安装VS11后,我开始得到以下错误:
Assemblies\Microsoft\FSharp\2.0\Runtime\v2.0\FSharp.Core.dll考虑从版本"2.0.0.0“C:\Program (x86)\Reference Assemblies\Microsoft\FSharp\2.0\Runtime\v4.0\FSharp.Core.dll到版本"4.0.0.0”C:\Program (x86)\Reference Assemblies\Microsoft\FSharp\2.0\Runtime\v4.0\FSharp.Core.dll对程序集"FSharp.Core、Culture=neutral、PublicKeyToken=b03f5f7f11d50a3a“进行app.config重新映射,以解决冲突并消除警告。C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1490,5):警告MSB3247:发现同一依赖程序集的不同版本之间的冲突。
我到底该怎么做?我不知道怎么做这样的重新映射。
发布于 2011-10-31 18:41:05
下面是一个示例app.config,它可以执行建议的操作。但是,您的项目中有哪些内容,以及有哪些FSharp.Core引用?你是针对.Net 4.5还是4.0还是什么的?这个项目引用了一些旧的F#库吗?这通常是因为两个项目引用不同版本的FSharp.Core.dll,例如检查.fsproj文件中的<Reference>节点。
<?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>发布于 2014-02-19 15:34:10
与Json.Net相关的相同错误
在我的项目文件里
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Newtonsoft.Json.6.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>和
<ItemGroup>
<Reference Include="Newtonsoft.Json">
<HintPath>..\packages\Newtonsoft.Json.5.0.6\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
</ItemGroup>删除旧的解决了这个问题。
发布于 2012-05-21 13:39:57
如果你完成了升级,就不会有这样的问题.除非您使用的是第三方库,否则它使用旧的FSharp.Core本身。在我的例子中,是FSharpPowerPack干的。
因此,您必须先更新该库,才能删除此消息。
https://stackoverflow.com/questions/7951560
复制相似问题