Incorrect version of FSharp.Core in Xamarin.Forms project

In the Xamarin.Forms project, I get an error in Windows 8.1 and UWP:

Could not load file or assembly 'FSharp.Core, Version=3.259.3.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly manifest definition does not match the assembly reference.

The actual version of F # used throughout the solution is 3.7.4.0:

<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkProfile>Profile7</TargetFrameworkProfile>
<TargetProfile>netcore</TargetProfile>
<TargetFSharpCoreVersion>3.7.4.0</TargetFSharpCoreVersion>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>

There is an F # PCL project and projects for the C # platform. The error only occurs when using F # libraries from Nuget in PCL. These packages tend to use:

<TargetFSharpCoreVersion>3.259.3.1</TargetFSharpCoreVersion>

I tried the following, but they do not change the error:

  • Entering the app.config file with binding redirection in 3.7.4.0 to the F # project and / or assembly directory
  • Install FSharp.Core Nuget package in all projects

Very grateful for any help.

Edit: in the original question, there was an incompatibility between the (111) profile and the alleged TargetFSharpCoreVersion (3.7.4.0), which caused additional problems.

+6

Source: https://habr.com/ru/post/1016744/


All Articles