C
C#2y ago
Sparky

❔ How do I resolve a 'package downgrade' if one of my dependencies needs an older version of a dll?

I'm developing an app that uses the newest EntityFramework Core 7 (.NET 7) to communicate with its own database. One of the libraries in this app needs to communicate with an external Firebird database. The problem is, that the official Firebird provider for EF Core doesn't support EF Core 7 yet, only EF Core 6, and this leads to a package incompatibility issue between the main project and the Firebird module. As far as I can tell, I have two options: 1) Rewrite all functionality of the Firebird plugin by using the native FIrebird client, with raw SQL strings (so it no longer uses EF Core) 2) Somehow figure out a way to let these two different versions of EF Core (6.0.12 and 7.0.1) co-exist in my application so I don't have to rewrite anything In this case I'm hoping to go with option 2, but I'm not sure if it's even possible, and I need some help. All packages are resolved from Nuget.
4 Replies
Sparky
SparkyOP2y ago
To put it simply: How can I have two different versions of the same nuget package installed in one solution?
sibber
sibber2y ago
its possible
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server