Akka.net: Wrong versioning for FsPickler in Akka.FSharp Nuget package configuration file

Created on 31 Jul 2016  路  3Comments  路  Source: akkadotnet/akka.net

The Nuget package configuration file specifies
<package id="FsPickler" version="1.2.21" targetFramework="net45" />, which according to the Nuget documentation means any version greater or equal to 1.2.21.

In a project I'm working on Packet resolved that version to 3.0.0, which causes the following exception:
System.TypeLoadException: Could not load type 'Akka.FSharp.Serialization+ExprSerializer' from assembly 'Akka.FSharp, Version=1.1.1.27, Culture=neutral, PublicKeyToken=null'.

Most helpful comment

I think I experienced a related problem. I kept getting the exception
Could not load type 'Nessos.FsPickler.BinarySerializer' from assembly 'FsPickler, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.

I resolved by pinning the FsPickler version to 2.4.0 in my paket.dependencies file

All 3 comments

I think I experienced a related problem. I kept getting the exception
Could not load type 'Nessos.FsPickler.BinarySerializer' from assembly 'FsPickler, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.

I resolved by pinning the FsPickler version to 2.4.0 in my paket.dependencies file

@lambdakris Face the same issue. Pinning up version worked. thanks man.

See #2306

Was this page helpful?
0 / 5 - 0 ratings