Skip to content

[BUG] ReactiveUI.XamForms, WhenActivated generates FileNotFoundException Could not load file or assembly 'ReactiveUI.Wpf' or one of its dependencies #2038

@AkilaeTribe

Description

@AkilaeTribe

Describe the bug
In a Xamarin Forms projet, Using for the first time ReactiveUI.ViewForMixins.WhenActivated(this IActivatable @this, Action block, IViewFor view = null) generates two exceptions

System.IO.FileNotFoundException: Timeout exceeded getting exception details
System.IO.FileNotFoundException: Could not load file or assembly 'ReactiveUI.Wpf' or one of its dependencies

Steps To Reproduce

  1. Create new Xamarin Forms project (the starting root page should not be relevant to the issue)
  2. Install ReactiveUI.XamForms (problems seems present on 9.15.1 and 10.0.1-preview.3)
  3. Declare a view model (no property or base class required)
  4. Change base type of starting root page to matching ReactiveUI.XamForms one and using the view model type
  5. Instantiate a view model inside the starting root page constructor, and assign it to BindingContext
  6. Add in constructor this.WhenActivated(disposables => { });
  7. Ensure FileNotFoundException type is checked, in the Exception Settings window
  8. Run application for Android in Debug mode, using an emulator

Expected behavior
No exception happens.

Screenshots
Exception1
Exception2

Environment

  • OS: Windows 8.1 Professional
  • Version Android API 28 (emulator)
  • Device: Pixel (emulator)
  • IDE: Visual Studio 2019 Community 16.0.4

Additional context

Solution for reproduction
MonoReactiveUI.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions