I am not used to asking the community to solve my problems, but I am a newbie in C#/.NET and I am currently stuck.
I want to make a XAML application using LibUsbDotNet to communicate with an program on an Android powered phone using the Android Accessory Protocol through USB.
After a lot of research, I think I have successfully installed LibUsbDotNet (well finally, it's just install the .exe and add the reference to libusbdotnet.dll isn't it?), and now I'm trying to make it work.
Consequently, I have implemented a short program, as simple as the following:
namespace PC_side
{
    /// <summary>
    /// Une page vide peut être utilisée seule ou constituer une page de destination au sein d'un frame.
    /// </summary>
    public sealed partial class MainPage : Page
    {
        public MainPage()
        {
            this.InitializeComponent();
            UsbRegDeviceList allDevices = UsbDevice.AllDevices;
            console.Text += allDevices.Count();
        }         
    }
}
But when I execute it, it doesn't work. Then when I use the debugger, an exception occurs: System.TypeLoadException.
More details :
Could not load type 'Microsoft.Win32.RegistryValueKind' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.
I am using Visual Studio Enterprise 2015 on a Windows 10 Professional 64bit computer.
Can someone help me by saying what I did wrong and pointing me in the right direction please? I'm a bit lost.
Thanks a lot for your help.
P.S. Please don't mind my bad English, I'm not an English native speaker.