elsa-workflows / elsa-core

A .NET workflows library
https://v3.elsaworkflows.io/
MIT License
6.53k stars 1.2k forks source link

[CHORE] Update MongoDB Driver to Use Strong-Named Assemblies in Elsa.MongoDB and Elsa.Persistence.MongoDB #5970

Open sfmskywalker opened 2 months ago

sfmskywalker commented 2 months ago

We need to update the Elsa.MongoDB and Elsa.Persistence.MongoDB packages to use the strongly named MongoDB driver as part of MongoDB's upcoming major release. This change is necessary to ensure compatibility with the latest MongoDB .NET/C# Driver, which will now be strong-named.

Packages to Update:

Impact:

Tasks:

Notes:

Related:

sfmskywalker commented 2 months ago

In order to complete the upgrade for Elsa 2.x, ideally the following PR gets merged: https://github.com/AndyBeverlySchool/MongoDb.Bson.NodaTime/pull/22

Let's give the maintainer a bit of time to respond.

alkampfergit commented 2 months ago

Just a comment here. For .NET core users there is less problem, you can usually work by reflection. With .NET 4.8 user there is no binding redirect that can work. Mongodb sites reports binding redirect but it cannot work because the types (signed and unsigned) are different and the code will not compile. There are some trick that can make you survive, but upgrading the driver is really a living hell.

For those who are affected I've shared some code here https://github.com/alkampfergit/mongo-strong-name where you can find some trick in .NET 4.8 to redirect to new types at run time.