Cannot resolve dependency to assembly FSharp.Core

In a WPF programm with a Fsharp Library, I get the error message:

Unknown build error, ‘Cannot resolve dependency to assembly ‘FSharp.Core, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.’

Any suggesions on how to solve this?

Using nuget to get the correct FSharp.Core.

Also notice that the framework version is relevant: e.g. 4.6 vs 4.5

Thanks for your swift reply.

I updated Fsharp.Core to the latest version 4.5.

I get the same error message, although referring to Version=

In what way is the framework version relevant? In the WPF project the framework is set to 4.6.1. In the f# project I can only set the framework to .net standard…


My first question would be:
In the WPF project, did you install the corresponding Fsharp.Core via nuget?


that worked, thanks!

1 Like