Error referencing an ef core assembly: Could not load file or assembly 'Microsoft.Extensions.Depe...
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:
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.
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
Same thing for me. I'm using code first approach.
https://1drv.ms/i/s!AkvMv3MGtkjSrew3nJih8fTdT1qUWA
Same thing again with the beta (5.22.09)