asp.net – 不明确的引用问题(Microsoft.AspNet.Identity和Microsoft.AspNet.Identity.Core)

我正在使用最新的VS2015社区和ASP.NET 5等构建AngularJS单页面应用程序…

我在尝试实现身份验证时遇到的问题是我需要使用这两个命名空间:

Microsoft.AspNet.Identity //Version 3.0.0-beta4
Microsoft.AspNet.Identity.Owin //Version 2.2.1

但由于Microsoft.AspNet.Identity.Owin具有依赖性

Microsoft.AspNet.Identity.Core

我不断得到模糊的引用问题,例如对于Microsoft.AspNet.Identity和Microsoft.AspNet.Identity.Core中存在的UserManager.

之前还有其他人处理过这件事吗?
它是版本不兼容问题还是仅仅是不完整的Owin ASP.NET 5实现?

解决方法

Microsoft.AspNet.Identity.Owin包是ASP.NET Identity 2的一部分,而不是ASP.NET 5附带的最新版本.尝试引用它将下载ASP.NET Identity 2并导致您遇到的奇怪错误.

只需引用Microsoft.AspNet.Identity即可.

相关文章

这篇文章主要讲解了“WPF如何实现带筛选功能的DataGrid”,文...
本篇内容介绍了“基于WPF如何实现3D画廊动画效果”的有关知识...
Some samples are below for ASP.Net web form controls:(fr...
问题描述: 对于未定义为 System.String 的列,唯一有效的值...
最近用到了CalendarExtender,结果不知道为什么发生了错位,...
ASP.NET 2.0 page lifecyle ASP.NET 2.0 event sequence cha...