Connection from .linq script (Linqpad 6)
I have a db context that requires some external dependencies and it does not have ctor witch accepts string or DbContextOptions, I've created db context derived from it with some mocks in .linq script. Is it possible to add this context to list of connections? I've tried adding db context found in LINQPadQuery.dll but I'm getting errors that it cant find some other .dlls (I copied them to the same folder using 'Export all DLLs to Folder'): specifically Microsoft.Extensions.DependencyInjection Version 5.0.0.1
Comments
Make sure the DLL that you're referencing has a .deps.json file present in the same folder. This file lists all the NuGet package dependencies and LINQPad will parse it and resolve those NuGet dependencies to the correct DLLs.
I copied all .deps.json for my dlls, but one for LINQPadQuery.dll is missing, now I'm getting FileNotFoundException for System.Runetime version=5.0.0.0. How can I generate one?