-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed as duplicate
Description
Steps to reproduce
- Install the packages required to use EF Core in a UWP application by following the guideline explained here: http://ef.readthedocs.io/en/latest/platforms/uwp/
- Notice that, by default, NuGet install the last version of the package, which is 1.0.1
- Follow the tutorial to create the model and the DbContext class
- Run the NuGet command to perform the migration
Add-Migration MyFirstMigration
The issue
The migration fails with the following exception
Add-Migration : Exception calling "CreateInstanceAndUnwrap" with "8" argument(s): "Could not load file or assembly 'Microsoft.EntityFrameworkCore, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its
dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"
At line:1 char:1
+ Add-Migration MyFirstMigration
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Add-Migration], MethodInvocationException
+ FullyQualifiedErrorId : FileLoadException,Add-Migration
The only way to get the migration working is to revert back all the NuGet packages to version 1.0.0
Further technical details
EF Core version: 1.0.1
Operating system: Windows 10 14393.105
Visual Studio version: Visual Studio 2015 Update 3
Other details about my project setup: Simple project created for test purposes, with just one entity and some basic operations (Inserting and retrieving data).
Metadata
Metadata
Assignees
Labels
No labels