efcore: Add-Migration fails on a UWP class library
I moved my model to a class library (along with the context). When I try and run the command:
Add-Migration MyFirstMigration -project Model
I get the following error:
Add-Migration : Exception calling "CreateInstanceAndUnwrap" with "8" argument(s): "Could not load file or assembly 'Microsoft.Framework.Logging.Abstractions, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."
At line:1 char:1
+ Add-Migration MyFirstMigration -project GymBuilder.Model
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Add-Migration], MethodInvocationException
+ FullyQualifiedErrorId : FileNotFoundException,Add-Migration
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 16 (6 by maintainers)
Commits related to this issue
- Disabling other projects, because of https://github.com/aspnet/EntityFramework/issues/2784 — committed to angelinn/MovieRegistryForWindows by angelinn 8 years ago
I found what my issue was. Embedded in my project file it was referencing the old beta5 build. I had to remove it from a text editor since NuGet and Visual Studio weren’t catching it.
You may want to double check the packages folder and make sure that the Microsoft.Framework.Logging.Abstractions folder is present with it’s data for the beta version you are using.