I have a .NET Core 1.0 class library which targets .NET 4.6.1 and references the .NET Standard Library 1.6.0 and Identity Framework 2.2.1
project.json
{
"version": "1.0.0-*",
"dependencies": {
"Microsoft.AspNet.Identity.EntityFramework": "2.2.1",
"System.Runtime": "4.1.0",
"NETStandard.Library": "1.6.0"
},
"frameworks": {
"netstandard1.6": {
"imports": [
"net461"
]
}
}
}
In my project I'm just creating the identity models, which extend the base Identity Framework models (User, Role etc). When I try to compile, this happens...
Any ideas how to resolve this?
Microsoft has a nuget package that can help. I don't know the specifics of how it works but it resolved my dependency issues:
https://www.nuget.org/packages/Microsoft.NETCore.Portable.Compatibility/
Or simply run this in the package manager console:
Install-Package Microsoft.NETCore.Portable.Compatibility -Version 1.0.1
edit: This was added to a .net core 1.1 project.