【发布时间】:2014-06-26 22:36:18
【问题描述】:
我觉得我错过了一些非常基本的东西,但我已经努力解决它。
基本上我想在这里遵循这个问题的答案:https://stackoverflow.com/a/22694372/768952
它使用 GoogleOAuth2AuthenticationOptions 对象,根据我的谷歌搜索,该对象应该位于 .net4.5 框架内:Microsoft.Owin.Security.Google.GoogleOAuth2AuthenticationOptions
但是我的 MVC 项目是 .net 4.5 并且它不存在!尽管如此,它应该是:http://www.symbolsource.org/Public/Metadata/NuGet/Project/Microsoft.Owin.Security.Google/2.1.0-rc1/Release/.NETFramework,Version%3Dv4.5/Microsoft.Owin.Security.Google/Microsoft.Owin.Security.Google/GoogleOAuth2AuthenticationHandler.cs?ImageName=Microsoft.Owin.Security.Google
那么 GoogleOAuth2AuthenticationOptions 到底在哪里?哈哈
【问题讨论】:
-
只是 GoogleOAuth2AuthenticationOptions 不存在还是命名空间 Microsoft.Owin.Security.Google 也不存在?
-
所以我假设您已经添加了对 Microsoft.Owin.Security.Google.dll 的引用?
-
是的,对象不在命名空间内,程序集被引用,如果我对象浏览程序集,对象不在那里。
-
您引用了哪个版本的 Microsoft.Owin.Security.Google.dll?
-
尝试 v2.1.0 katanaproject.codeplex.com/releases/view/113281 nuget.org/packages/Microsoft.Owin.Security.Google/2.1.0 如果需要,升级你的 NuGet 包。
标签: c# asp.net-mvc oauth-2.0