我刚刚尝试安装 DoNetOpenAuth Nuget 包,但它对于 ASP.net MVC 4 应用程序失败:
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 4.5 的 bin 库只有一个 DLL——DotNetOpenAuth.dll。它没有其他 DLL,例如 DotNetOpenAuth.Core、DotNetOpenAuth.OpenId、DotNetOpenAuth.OpenId.RelyingParty 等。
TIA 为您提供帮助。