Home

Error trying to get the DbContext from a .NET8 assembly

I have been working on a VS solution for some time, and have had LinqPad connected to the database via the EF Core DbContext in the solution.

I updated the project that holds the DbContext from .NET7 to 8, and want to point the LinqPad connection at the new assembly. However, when I pick the DLL, and then click the Choose link to pick the DbContext, I get an error...

Cannot load assembly: RemoteException - FileNotFoundException
Could not load file or assembly 'System, Runtime,
Culture—neutral, PublicKeyToken=b03f5f7f11d50a3a•, The system
cannot find the file specified.
Source—System.Private.CoreLib

I used a decompiler to look at the DLL, and I can see the DbContext in there.

Anyone any idea what's going wrong? Thanks

Comments

Sign In or Register to comment.