Linqpad, Entity Framework and .net 5.0 (vNext)
I have been playing around with .net 5.0 pre-release. I use Linqpad to debug and check linq-to-entities queries. Hiterto this has involved setting up a data connection by referencing the binaries in the appropriate build directory for the solution. The .net 5.0 framework does not appear to have a build directory, or any .dll or .exe files within the solution.
Is it going to be possible to use Linq-pad with .net 5.0 (vNext), and if so what steps need to be taken?
This is part question (is this possible and how) and partly to make people aware of an upcoming issue as .net 5.0 moves to release version
Is it going to be possible to use Linq-pad with .net 5.0 (vNext), and if so what steps need to be taken?
This is part question (is this possible and how) and partly to make people aware of an upcoming issue as .net 5.0 moves to release version
Comments
"Could not load file or assembly Microsoft.AspNet.Mvc.ViewFeatures, Version=6.0.0. I am using EF7...
.NETCore.App: 1.0.0-rc2-3002702
.EntityFrameworkCore.Tools: 1.0.0-preview1-final
Pomelo.EntityFrameworkCore.MySql: 0.0-prerelease-20160730
LINQPad: 5.08.01
LinqPad EntityFramework V7 Driver: 1.0.1.0
Getting the same, "Could not load Assembly. System.Runtime, Version=4.1.0.0, PublicKeyToken=b03f5f7f11d50a3a when adding connection
Have added additional Reference 4.1.0.0 System.Runtime from NuGet to LINQPad.
Not sure if it is the MySql connector is the issue, if LinqPad is the issue or My issue. Any suggestions or can somebody tell me it is not working at this time with what I'm working with. Thanks in advance.
If you create a .NET Console app, can you reference your EF Core assemblies and use them?
And if not, does the following help:
https://github.com/dotnet/core/issues/89
LINQPad is a .NET 4.6 application, which means you you can only reference assemblies that target NET4.6.x or earlier. From the error message reported a few messages up, it sounds like you're trying to reference netcore assemblies from LINQPad, a NET46 application, and this is not allowed. The solution is to add a NET46 build target to your project.json file and then reference the assemblies in the net46 folder.
If you've already tried this, or are getting a different error message, let me know.
Your statement "LINQPad now supports Entity Framework 7" doesn't seem to be accurate.