Error with mismatched Microsoft.EntityFrameworkCore versions

I have Linqpad 5.36
I can connect to my project
I can see my enitities
I try:
tblCentre.Dump();
I get:
CS1705 Assembly 'MyDAL' with identity 'MyDAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'Microsoft.EntityFrameworkCore, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' which has a higher version than referenced assembly 'Microsoft.EntityFrameworkCore' with identity 'Microsoft.EntityFrameworkCore, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'

I add a reference to the query: Microsoft.EntityFrameworkCore, Version=2.1.3.0

I still get the error

How do I solve this??

P.S. I work behind a very secure Proxy Server so interactive downloads are extremely hard

Comments

  • Are you using the Entity Framework driver? If so, try removing the reference to Microsoft.EntityFrameworkCore in your query. The driver should locate the correct assembly automatically.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!