System.Security.Claims命名空间的成员不可用?

我正在学习.NET 4.5中新的基于声明的身份validation方法,并且正在使用Console应用程序来实现这一点。 根据MSDN,ClaimsAuthenticationManager是System.Security.Claims命名空间的成员。 正如你在这里看到的,我没有得到这个选项。 我确定该项目使用的是.NET 4.5。 我在这里想念一些简单的东西……有人有什么建议吗?

System.Security.Claims Intellisense选项

您需要添加对System.IdentityModel.dll的引用

您可以在ClaimsAuthenticationManager的文档中看到这ClaimsAuthenticationManager

命名空间:System.Security.Claims

程序集:System.IdentityModel(在System.IdentityModel.dll中)