The problem arises from trying to move the models to a separate project to be referenced in a xamarin cross-platform application. I created a .Net Core class library project to contain all the data models for each front end and included the ApplicationUser with an updated namespace into the project. I added the Microsoft.AspNetCore.Identity.EntityFrameworkCore nuget package to the library and reference the project from the Web application. The result produces the error below:
The problem
To fix this problem i had to revert the namespace of the ApplicationUser back to its original namespace from the Web Application. This seems to work for now but this was unexpected behaviour/bug?
Exact steps to reproduce the problem
Create ASP.NET Core Web Application with Individual User
Create .NET Core Class Library and add "portable-net452+win81" to the NetStandard1.5 imports and include "Microsoft.AspNetCore.Identity.EntityFrameworkCore" in the project.json
Move ApplicationUser to the class library and update namespace to correspond to class library
Reference class library from web application and update imports
The problem arises from trying to move the models to a separate project to be referenced in a xamarin cross-platform application. I created a .Net Core class library project to contain all the data models for each front end and included the
ApplicationUser
with an updated namespace into the project. I added theMicrosoft.AspNetCore.Identity.EntityFrameworkCore
nuget package to the library and reference the project from the Web application. The result produces the error below:The problem
To fix this problem i had to revert the namespace of the
ApplicationUser
back to its original namespace from the Web Application. This seems to work for now but this was unexpected behaviour/bug?Exact steps to reproduce the problem
.NET Core class library project.json
NOTE: I've included .netcoreapp1.0 to fix a resharper issue http://stackoverflow.com/a/37617711/3603938
ASP.NET Core Web Application project.json
System Windows 10 Visual Studio 2015 community edition + Visual Studio 2015 Pro IIS 10.0 Express