We have cross platform project (WPF and ios) which use Mvvmcross.
We want to use Credentials in a HttpWebRequest but we use PCL library. So we created mvvmcross plugin to use System.Net.CredentialCache.DefaultNetworkCredentials.
Our plugin interface return System.Net.ICredentials which exist in WPF and Xamarin.
In WPF application it works great but ios plugin does not compile.
Le type 'System.Net.ICredentials' est défini dans un assembly qui n'est pas référencé. Vous devez ajouter une référence à l'assembly 'System.Net, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'.
We try to use System.Net.Touch from mvvmcross but we have the same error.
We had extract public key of Profile104's System.Net.dll and give 2.0.5.0 version to custom dll. We add this lines in csproj :
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\Signing\system_net.snk</AssemblyOriginatorKeyFile>
<DelaySign>true</DelaySign>
But it doesn't work.
Have got an idea ?
Thanks,