我只是試圖安裝DoNetOpenAuth NuGet包,它失敗的ASP.net MVC 4應用:DotNetOpenAuth NuGet包安裝失敗
PM> Install-Package DotNetOpenAuth
Attempting to resolve dependency 'DotNetOpenAuth.OpenId.RelyingParty.UI (= 4.3.2.13293)'.
Attempting to resolve dependency 'DotNetOpenAuth.OpenId.Core.UI (= 4.3.2.13293)'.
Attempting to resolve dependency 'DotNetOpenAuth.Core.UI (= 4.3.2.13293)'.
Attempting to resolve dependency 'DotNetOpenAuth.Core (= 4.3.2.13293)'.
Attempting to resolve dependency 'Microsoft.Net.Http'.
Attempting to resolve dependency 'Microsoft.Bcl (≥ 1.1.3)'.
Attempting to resolve dependency 'Microsoft.Bcl.Build (≥ 1.0.4)'.
Attempting to resolve dependency 'DotNetOpenAuth.Mvc (= 4.3.2.13293)'.
Install-Package : Unable to resolve dependency 'DotNetOpenAuth.Mvc (= 4.3.2.13293)'.
At line:1 char:1
+ Install-Package DotNetOpenAuth
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
我下載的二進制文件從DonetOpenAuth.net和.NET的bin庫4.5只有一個DLL - DotNetOpenAuth.dll。它沒有其他DLL,如DotNetOpenAuth.Core,DotNetOpenAuth.OpenId,DotNetOpenAuth.OpenId.RelyingParty等。
TIA爲您提供幫助。
安裝此版本後,我得到一個編譯錯誤,因爲VS找不到命名空間DotNetOpenAuth.AspNet。 –
我安裝了DotNetOpenAuth.AspNet,我又開始工作了。對不起,錯誤的電話。 –