Skip to content

[Bug]: ObserveOn(IObservable<TSource>, Control) duplicates in ReactiveUI.WinForms and System.Reactive #3885

@Metadorius

Description

@Metadorius

Describe the bug 🐞

Error CS0121 : The call is ambiguous between the following methods or properties: 'System.Reactive.Linq.ControlObservable.ObserveOn<TSource>(System.IObservable<TSource>, System.Windows.Forms.Control)' and 'System.Reactive.Linq.ControlObservable.ObserveOn<TSource>(System.IObservable<TSource>, System.Windows.Forms.Control)'

The methods are under the same namespace, and I believe they are the same method just moved to a different NuGet, so one of them has to go.

Step to reproduce

  1. Install ReactiveUI.WinForms and System.Reactive
  2. Try to use ObserveOn(IObservable<TSource>, Control)

Reproduction repository

No response

Expected behavior

The method can be used normally

Screenshots 🖼️

image

IDE

No response

Operating system

No response

Version

No response

Device

No response

ReactiveUI Version

ReactiveUI 20.1.1, System.Reactive 6.0.1

Additional information ℹ️

Using .NET Framework 4.8.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions