恢复AspNet标识核心包时出错

Beh*_*ini 6 asp.net-identity asp.net-core asp.net-core-identity

使用MS VS 2015 Pro和Asp.net Core,我正在尝试添加Microsoft.AspNet.Identity.Core包,但是我收到此错误:

   Errors in c:\users\xxx\documents\visual studio 2015\Projects\WebApplication1\src\WebApplication1\WebApplication1.xproj
        Package Microsoft.AspNet.Identity.Core 2.2.0 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.AspNet.Identity.Core 2.2.0 supports: net45 (.NETFramework,Version=v4.5)
        One or more packages are incompatible with .NETCoreApp,Version=v1.0.
Run Code Online (Sandbox Code Playgroud)

我还将Packege版本更改为2.1.但得到了同样的错误.你能告诉我为什么会这样吗?

Tse*_*eng 23

Microsoft.AspNet.Identity.Core ASP.NET 4是一个旧的包(例如MVC5),不适用于ASP.NET Core.

您需要Microsoft.AspNetCore.IdentityASP.NET Core的包.