使用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 P
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.
我还将Packege版本更改为2.1.但得到了同样的错误.你能告诉我为什么会这样吗?
Microsoft.AspNet.Identity.Core是ASP.NET 4的旧包(例如MVC5),不适用于ASP.NET Core.您需要ASP.NET Core的Microsoft.AspNetCore.Identity包.