2

This has caused me quite the embaressment today. While I was demoing Rx 2.x features and capabilities, I tried to build a NuGet enabled project which I copied from another computer.

Everything was downloaded correctly, the references are there! but I can't compile.

These two below assemblies are causing the issue. I am wondering if anyone has faced this issue with restroing Rx assemblies into a .Net 4.5 project.

System.Reactive.Windows.Threading

Warning 11 The primary reference "System.Reactive.Windows.Threading, Version=2.1.30214.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the framework assembly "System.Threading.Tasks, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.5". To resolve this problem, either remove the reference "System.Reactive.Windows.Threading, Version=2.1.30214.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.Threading.Tasks, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".

And System.Reactive.PlatformServices

Warning 26 The primary reference "System.Reactive.PlatformServices" could not be resolved because it has an indirect dependency on the framework assembly "System.Runtime.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.5". To resolve this problem, either remove the reference "System.Reactive.PlatformServices" or retarget your application to a framework version which contains "System.Runtime.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".

Couldn't compile:

Error 73 The type or namespace name 'IScheduler' could not be found (are you missing a using directive or an assembly reference?)
Error 74 The type or namespace name 'CompositeDisposable' could not be found (are you missing a using directive or an assembly reference?)

4

1 回答 1

1

我的通灵调试器说这与在项目中混合引用 .NET 4.0 和 .NET 4.5 Rx DLL 或 Microsoft.Bcl.Async 有关。

于 2013-06-06T00:54:00.980 回答