Error: Could not load file or assembly 'System.Runtime, Version=5.0.0.0 ...
Hi!
In LINQPad 6.10.13 (X64) I run into this problem after I re-targeted my typed EF Core data context (for a SQLite database) from netcoreapp3.1 to net5.0 (I have the .NET SDK 5.0.100-rc.1.20452.10 installed).
Any idea how to solve this?
Thanks
Karlo
Comments
-
You have to make sure that your query also targets .NET 5. In the toolbar, set the .NET dropdown to 5.0. You can make this the default in Edit | Preferences > Query.
-
I think I had tried that already. I had to downgrade to netcoreapp3.1 for the moment but when I have the time I'll try again and let you know here.
Thanks! -
i have a new project that is for .net 5 and the new ef for .net 5
when i try to make a connection in linqpad to my ef model / context i get the error that it can not load system.runtime version 5.0.0.0 -
update: the problem seem to be that the dialog is only allowing for a dll but the app is a console app so it needs to let me select the .exe file.....
-
nope that was not it.... so what gives ? ther is a dll that has the name of the app and that gives the first error. picking the exe says not a managed runtime.... so how do we make this work ? or is the rc of .net 5 and linqpad 6 just not ready to roll ??
-
I've identified an issue. Try the latest beta:
https://www.linqpad.net/LINQPad6.aspx#beta -
I tried with Beta v6.11.7 and it now works fine for me.
Thanks!