I am running Xamarin in OSX Yosemite.
My problem is that I cannot get System.Net.Http to work at all when writing unit tests.
To replicate, one can create a very simple test class:
using NUnit.Framework;
using System.Net.Http;
using ModernHttpClient
namespace testclass
{
[TestFixture ()]
public class Test
{
[Test ()]
public void TestCase ()
{
var client = new HttpClient (new NativeMessageHandler());
}
}
}
Running this invariably yields:
System.IO.FileNotFoundException: Could not load File or Assembly 'System.Net.Http, Version=1.5.0.0, Culture=neutral, PublicKeytoken=b03f5f7f11d50a3a' or one of its dependencies.
However, inserting the same line of code into an Android app works just fine.
I have already tried completely removing and reinstalling Xamarin, but unfortunately this does not solve the issue. Any ideas?