Error referencing an ef core assembly: Could not load file or assembly 'Microsoft.Extensions.Depe...

edited June 28
I'm trying to use an ef core 1.1 project that I created in VS2017.
I add a connection, select the ef core 1.1 driver (version 1.1.1.1),
enter the path to my assembly, choose the dbcontext, select the option for a constructor that accepts the connection string
(I added such a constructor to my dbcontext, as suggested here).
When I test the connection, I get the following error:
Error Testing EF7 Connection: Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=1.1.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)
I've just started using LINQPad, I hope I've done everything right.
Edit:
In order to isolate the problem, I've created a new project in VS2017 - with the "ASP.NET Core Web Application (.Net Framework) - ASP.NET Core 1.1" Template,
created the dbcontext & models from my Sql Server DB with the DB-first approach,
and compiled the project.
Trying to connect LINQPad to through the created assembly still gives the same error.

Comments

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!