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
Sparky2y 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
More Posts
❔ Will I get a performance hit if I use the Enum type as a key value for a Dictionary?See Code below: ``` public enum Tee1 { None } public enum Tee2 { None } class Program { ✅ Design decision over multiple inserts in a single commandHi, any design suggestions on how to handle an update command from a mvc form which update needs to ❔ Create a HostedService using BackgroundService to listen to requestsHello, I am currently trying to build a BankAccount project and I wrote my business logic. My next ❔ When Vpn connectivity is off don't crash the app.I have built this logic it does make a popup appear with a message about vpn not being connected if ❔ Update-Database errorGetting the following error with the following migration, is anyone able to tell why? https://pasteb❔ PDF generation library?I'm looking for a way to generate PDF file in an ASP.NET application.❔ Entity Framwork SQLite AddHello, i've a little problem there. I'm trying to add something new in my database but i do not unde❔ Linq group by with multiple columns for the outer and then 1 other column for the inner groupLets say I have a list of class Car. It has properties Id, Model, Year, Age,CarCode. A carCode is un❔ Following BPM with codeI’m wanting to create my own very small dmx light show maker in c#. I realize it takes **forever** t❔ System.NullReferenceException 'Object reference not set to an instance of an object.'Hello! I'm getting a little desperate here: This is my index code: ``` public IActionResult Index()