I'm builind my PCL Core library using MVVMCross and Mono with VisualStudio 2012 and Stable version of Xamarin. I have following compile error.
Error 3 'System.Net.WebHeaderCollection' does not contain a definition for 'Add' and no extension method 'Add' accepting a first argument of type 'System.Net.WebHeaderCollection' could be found (are you missing a using directive or an assembly reference?)
When try to do that:
string address = "http://www.test.com/;
HttpWebRequest request = WebRequest.Create(address) as HttpWebRequest;
request.Method = "GET";
request.Accept = "application/json";
request.Headers.Add(HttpRequestHeader.Cookie, "customcookie");
HttpWebRequest is well referenced.
N.B. Same code work in Xamarin Studio on Mac.