使用MS vs 2015 Pro和Asp.net Core,我正在尝试添加Microsoft.aspnet.Identity.core.core。但是我遇到了此错误:
Errors in c:usersxxxdocumentsvisual studio 2015ProjectsWebApplication1srcWebApplication1WebApplication1.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。
您需要 Microsoft.AspNetCore.Identity
conge for asp.net core。