reactiveui / ReactiveUI

An advanced, composable, functional reactive model-view-viewmodel framework for all .NET platforms that is inspired by functional reactive programming. ReactiveUI allows you to abstract mutable state away from your user interfaces, express the idea around a feature in one readable place and improve the testability of your application.
https://www.reactiveui.net
MIT License
8.06k stars 1.12k forks source link

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

Open Metadorius opened 1 month ago

Metadorius commented 1 month ago

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.

zhyy2008z commented 2 weeks ago

+1