Skip to content

[Bug]: v5.0.1 doesn't work with ReactiveUI v22.0.1 #829

@meld-cp

Description

@meld-cp

Describe the bug 🐞

I recently updated my WPF project to ReactiveUI v22.0.1.

At runtime I get this error whenever a ViewModel which inherits from ReactiveValidationObject is constructed.

System.TypeLoadException: Could not load type 'System.Reactive.Disposables.DisposableMixins' from assembly 'ReactiveUI, Version=22.0.0.0, Culture=neutral, PublicKeyToken=null'.
   at ReactiveUI.Validation.Helpers.ReactiveValidationObject..ctor(IScheduler scheduler, IValidationTextFormatter`1 formatter)
...

Step to reproduce

Run the WPF sample application

Reproduction repository

https://github.com/reactiveui/ReactiveUI.Validation/tree/main/samples/LoginApp.Wpf

Expected behavior

Sample app should run

Screenshots 🖼️

No response

IDE

Visual Studio 2022

Operating system

Windows

Version

11

Device

No response

ReactiveUI Version

22.0.1

Additional information ℹ️

Diving deeper into the samples, I needed to do the following to get it to work:

  • update to ReactiveUI v22.0.1
  • add using System.Reactive.Disposables.Fluent where ever .DisposeWith is being used

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions