efcore 2.1 driver throws FileNotFoundException re: Npgsql.EntityFrameworkCore.PostgreSQL
i'm using LINQPad 5.30.3 and my trying to use the EFCore 2.1 driver.
My app DbContext and Product entity are in a NetStandard2.0 Class Library Project, and I also have a dummy console project just to do migrations (the setup follows the instructions in https://www.blinkingcaret.com/2018/03/28/setting-up-ef-core/).
i have put [assembly: InternalsVisibleTo("LINQPadQuery")] in my library project's assemblyinfo.cs file, turned on Allow LINQPad to access internal types of other assemblies, and when i point LINQPad to my Library's dll, LINQPad can find my app DbContext. But in calling my DbContext's constructor that accepts a connection string parameter, LINQPAD is throwing said FileNotFoundException, indicating it cant find or load Npgsql.EntityFrameworkCore.PostgreSQL version 2.1.0 (i'm using 2.1rc) or one or more of its dependencies.
Please help! Not sure what else i should do or further debug this situation
My app DbContext and Product entity are in a NetStandard2.0 Class Library Project, and I also have a dummy console project just to do migrations (the setup follows the instructions in https://www.blinkingcaret.com/2018/03/28/setting-up-ef-core/).
i have put [assembly: InternalsVisibleTo("LINQPadQuery")] in my library project's assemblyinfo.cs file, turned on Allow LINQPad to access internal types of other assemblies, and when i point LINQPad to my Library's dll, LINQPad can find my app DbContext. But in calling my DbContext's constructor that accepts a connection string parameter, LINQPAD is throwing said FileNotFoundException, indicating it cant find or load Npgsql.EntityFrameworkCore.PostgreSQL version 2.1.0 (i'm using 2.1rc) or one or more of its dependencies.
Please help! Not sure what else i should do or further debug this situation
Comments