我試圖將ReactiveUI NuGet包添加到新的VS2012 C#WPF .NET 4.5項目,但NuGet包管理器報告「無法解析依賴關係」Microsoft.Bcl.Async的問題。 NotBeta'」。 ReactiveUI NuGet包中的依賴項是否錯誤,或者是否已刪除Microsoft.Bcl.Async.NotBeta包?我可以成功安裝Rx-Main,它顯然不依賴於這個Async.NotBeta軟件包。ReactiveUI 4.2.1 NuGet包
下面是從包管理器控制檯確切的錯誤:
PM> install-package reactiveui
Attempting to resolve dependency 'reactiveui-core (= 4.2.1)'.
Attempting to resolve dependency 'Rx-Main (= 2.0.21114)'.
Attempting to resolve dependency 'Rx-Interfaces (= 2.0.21114)'.
Attempting to resolve dependency 'Rx-Core (= 2.0.21114)'.
Attempting to resolve dependency 'Rx-Linq (= 2.0.21114)'.
Attempting to resolve dependency 'Rx-PlatformServices (= 2.0.21114)'.
Attempting to resolve dependency 'Microsoft.Bcl.Async.NotBeta (= 1.0)'.
install-package : Unable to resolve dependency 'Microsoft.Bcl.Async.NotBeta (= 1.0)'.
At line:1 char:1
+ install-package reactiveui
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
這是正確的答案 –
@保羅,感謝您的快速修復。 –
當通過vs2012通過nuget包安裝到silverlight項目時,它拋出錯誤 **安裝失敗。回滾... 無法安裝軟件包'Splat 1.3.1'。您正在嘗試將此程序包安裝到以「Silverlight,Version = v5.0」爲目標的項目中,但該程序包不包含任何與該框架兼容的程序集引用或內容文件。欲瞭解更多信息,請聯繫軟件包作者。** – RAJ