Bug 58654 - Trying to add System.Reactive NuGet package fails.
Summary: Trying to add System.Reactive NuGet package fails.
Alias: None
Product: Workbooks & Inspector
Classification: Xamarin
Component: Client: Mac ()
Version: master
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: xamarininteractive
Depends on:
Reported: 2017-08-09 01:48 UTC by Miguel de Icaza [MSFT]
Modified: 2017-08-23 19:18 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Error message. (399.03 KB, image/png)
2017-08-09 01:48 UTC, Miguel de Icaza [MSFT]

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Miguel de Icaza [MSFT] 2017-08-09 01:48:55 UTC
Created attachment 24088 [details]
Error message.

I tried adding the "System.Reactive 3.1.1" package to a Workbook using .NET Core profile and got this error that says that there is a circular dependency:
Comment 1 Matt Ward 2017-08-13 10:16:21 UTC
I suspect this may be a NuGet bug:


VS for Mac 7.0.1 has similar behaviour if you try to install the MvvmFormsBase 2.2.0-Alpha2 into an Android project:

Attempting to resolve dependencies for package 'MvvmFormsBase.2.2.0-Alpha2' with DependencyBehavior 'Lowest'
Circular dependency detected 'MvvmFormsBase 2.2.0-Alpha2 => System.Reactive 3.1.1 => System.Reactive.PlatformServices 4.0.0-preview00001 => System.Reactive 3.1.1'.

System.Reactive 3.1.1 has a dependency on System.Reactive.PlatformServices" >= "3.1.1". If NuGet's dependency lowest resolution behaviour is being used, which is what VS Mac uses, then NuGet should pick System.Reactive.PlatformServices 3.1.1 but for some reason does not.
Comment 2 Bojan Rajkovic [MSFT] 2017-08-23 19:18:08 UTC
Yeah, this looks like a NuGet bug, and it is not fixed in 4.3.0 final.

As a workaround, you can enable pre-release packages and install System.Reactive 4.0.0 preview, which won't have dependency issues.