Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UWP.SQLite Issues #265

Closed
ghost opened this issue Sep 22, 2016 · 2 comments
Closed

UWP.SQLite Issues #265

ghost opened this issue Sep 22, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 22, 2016

I get the below error even on a vanilla UWP project when I try to setup and add migration to SQLite:

PM> Add-Migration MyFirstMigration
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
    
@divega
Copy link
Contributor

divega commented Sep 22, 2016

@snehitv see issue dotnet/efcore/issues/6551 for a workaround. This should be fixed as part of dotnet/efcore/issues/5471.

@ghost
Copy link
Author

ghost commented Sep 23, 2016

I have tried that and now I end up with the below:

add-migration : Exception calling "CreateInstanceAndUnwrap" with "8" argument(s): "Could not load file or assembly 'System.Threading.Tasks, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' 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 InitialMigration
  • - CategoryInfo          : NotSpecified: (:) [Add-Migration], MethodInvocationException
    - FullyQualifiedErrorId : FileLoadException,Add-Migration
    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants