shiftkey / Reactive.EventAggregator

A portable event aggregator for pub-sub messaging, using Rx, for .NET 4+, SL5, WP8+ and Windows Store Apps
MIT License
84 stars 15 forks source link

Version 4.0.0 requires dependency on System.Reactive.Linq #27

Open gradyal opened 6 years ago

gradyal commented 6 years ago

When I create a new console application (.NET Framework 4.6.2) and install the Reactive.EventAggregator version 4.0.0 NuGet package, the instantiation of EventAggregator gives me the following error at runtime:

System.IO.FileNotFoundException: 'Could not load file or assembly 'System.Reactive.Linq, Version=3.0.1000.0,...' or one of its dependencies. The system cannot find the file specified.'

The workaround I am currently using is to install the Reactive Compatibility package but this seems unnecessary. Or if it's necessary, it should be clearly documented.

gradyal commented 6 years ago

Here is a screenshot in case that helps

image

shiftkey commented 6 years ago

@gradyal strange - the NuGet package should be referencing System.Reactive and not need the facades. I was able to reproduce this following those steps and the workaround of referencing the System.Reactive.Linq facade package also worked for me, but I don't really have the time to dig into what's happened here.

If someone is able to figure that out I'm happy to publish an updated package for it.