1

I'm trying to upgrade EFCore 1.1 to EFCore 2.1

After a long journey of "Could not load assembly" and a bunch of NuGet updates, I'm facing what I think is the last wall before the accomplishment.

Could not load file or assembly 'System.ValueTuple, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I've tried what I found there: 'System.ValueTuple, Version=0.0.0.0 required for Add-Migration on .NET 4.6.1 Class Library

No success.

On the official Git, they propose to add those line in the app.config:

<dependentAssembly>
    <assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" />
    <bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
</dependentAssembly>

No success either.

If I remove System.ValueTuple from the nuget packages, I have the exact same error.

It's like some dll, I don't know which one, is trying to load the ValueTuple from an unexisting location. I don't even know why it is looking for version 0.

At this point, I have no idea what to do. I've tried tons of stuff I found on the internet, but I'm facing a deadend.

Any help is appreciated.

Targeted Framework: 4.7

EFCore version: 2.1

EFCore packages: Core, Abstractions, Analyzers, Design, InMemory (for test solution), Relational, SqlServer, Tools

System.ValueTuple: 4.4.0

.NetStandard: 2.0.3

4

0 回答 0