Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error on Restoring AspNet Identity Core Package

Using MS VS 2015 Pro and Asp.net Core, I am trying to add Microsoft.AspNet.Identity.Core Package but I am getting this error:

   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.

I also changed the Packege version to 2.1. but got same error. Can you please let me know why this is happening?

like image 864
Behseini Avatar asked Dec 03 '16 20:12

Behseini


1 Answers

Microsoft.AspNet.Identity.Core is an old package for ASP.NET 4 (MVC5 for example) not for ASP.NET Core.

You need Microsoft.AspNetCore.Identity package for ASP.NET Core.

like image 95
Tseng Avatar answered Oct 27 '22 03:10

Tseng