Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bait and Switch is broken because the portable NativeMessageHandler is in the wrong namespace #61

Closed
pauldendulk opened this issue May 20, 2014 · 1 comment

Comments

@pauldendulk
Copy link

When calling NativeMessageHandler from a PCL the app shows this exception: "System.TypeLoadException: Loading..."

To reproduce:

  • Add a new project Playground.Portable with Profile79 to sln.
  • Add this method to Class1:
    public void TestBaitAndSwitch()
    {
    var httpClient = new HttpClient(new NativeMessageHandler());
    }
  • Add a reference to ModernHttpClient.Portable from Playground.Portable
  • Add a reference to Playground.Portable from Playground.Android
  • Somewhere in OnCreate call: new Class1().TestBaitAndSwitch();
  • Running Playground.Android will show the above exception.

This can be fixed by changing the namespace in Facedes.cs from
ModernHttpClient.Portable to ModernHttpClient.

@anaisbetts
Copy link
Owner

Damn it - thanks for reporting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants