Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot load System.Net.Http.Primitives in Xamarin iOS

I have an older Xamarin forms project that I've updated, that uses Microsoft Azure's Mobile App Services (previously used Azure Mobile Services).

Was working fine, but after a clean and rebuild I now get this error whenever attempting to run it (I'm using Xamarin Studio)

Could not load file or assembly 'System.Net.Http.Primitives, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.

Microsoft.Azure.Mobile.Client and SQLiteStore are at version 2.0.1. I've tried removing and readding the assembly via NuGet, without any luck.

Has anyone seen this issue or resolved it?

like image 666
Mathieson Avatar asked Oct 31 '22 01:10

Mathieson


1 Answers

Xamarin iOS (monotouch) depends on System.Net.Http.Primitives version 4.2.29.0, while version 1.5.0.0 is for platform portable-net40+sl4+win8+wp71+wpa81. As Eric Hedstrom commented, have you tried the steps from this answer?

like image 123
Di Hei Avatar answered Nov 13 '22 01:11

Di Hei