![](/img/trans.png)
[英]Why is the IdentityUser class in the Microsoft.AspNet.Identity.EntityFramework namespace and not in the Core package?
[英]'AspNet' does not exist in the namespace 'Microsoft'. IdentityUser cannot be referenced in a class library package - ASP.NET 5
在ASP.NET 5项目中添加类库包时,默认框架是dotnet,如上面的project.json中所示。 将frameworks属性更改为:
"frameworks": {
"dnx451": { },
"dnxcore50": { }
}
似乎因为我使用的是EF7的Beta版,所以这仅适用于那些框架。 我不确定,但是可以。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.