Search code examples
c#xamarinxamarin.formsakavache

Akavache Unit is defined in an assembly not referenced: System.Reactive.Core version 2.2.5.0. Not available on nuget


I'm using the latest version of xamarin forms (as of 12/17/17) and I'm unable to use the following line in akavache:

await BlobCache.UserAccount.InsertObject(key, value);

Without getting the error:

The type 'Unit' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Reactive.Core, Version=2.2.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

v2.2.5.0 is not on nuget. I had it working before I thought but not it isn't showing so I'm wondering if I messed something up. I installed the latest version from nuget which is 3.1.1 but still have the error.

What can I do?

Edit:

I also made an issue on Github: https://github.com/akavache/Akavache/issues/399


Solution

  • You'll have to install this version of Akavache https://www.nuget.org/packages/akavache/6.0.0-alpha0038

    And then also just make sure you only have version 3.1.1 of System.Reactive installed everywhere and not 2.2.5 anywhere