Reactive (Rx) build issue with .Net 4.5 and NuGet
这使我今天很不舒服。当我演示Rx2.x的特性和功能时,我试图构建一个支持Nuget的项目,这个项目是我从另一台计算机复制的。
所有东西都下载正确,参考资料在那里!但我不能编译。
以下两个程序集导致了此问题。我想知道是否有人面临过将RX程序集重新插入.NET 4.5项目的问题。
system.reactive.windows.线程
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".
和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".
无法编译:
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?)
我的通灵调试器说,这与在项目中混合对.NET 4.0和.NET 4.5 RX DLL的引用或Microsoft.bcl.async有关。