RulesEngine icon indicating copy to clipboard operation
RulesEngine copied to clipboard

Exception Thrown Upgrading To Latest System.Linq.Dynamic.Core Version

Open nmadland opened this issue 1 year ago • 2 comments

We are currently using version 5.0.3 of this package. When we upgraded System.Linq.Dynamic.Core from 1.3.12 to 1.4.3, we started getting this exception:

Exception while parsing expression true - Method not found: 'Void System.Linq.Dynamic.Core.CustomTypeProviders.DefaultDynamicLinqCustomTypeProvider..ctor(Boolean)'.

which appears to be due to a change done in this commit in the SLDC code: https://github.com/zzzprojects/System.Linq.Dynamic.Core/commit/852434ce03e318a45b4fb5fd0a656e7d9bab989c#diff-59a013aa11deb1923983dd1185ff649c2c327d2841621d18dff2991ebbef6d6d

So it appears something in version 5.0.3 is not compatible with the latest DefaultDynamicLinqCustomTypeProvider contract. Are you able to please address this issue? According to your dependency chain you state that version 5.0.3 requires SLDC >= 1.3.7, so we assumed version 1.4.3 should work.

Thank you.

nmadland avatar Jul 29 '24 16:07 nmadland

Here is the issue with some discussion

aligneddev avatar Jul 29 '24 16:07 aligneddev

The System.Linq.Dynamic.Core team added backwards compatibility for this constructor, however it is now deprecated. It appears the updated package will be available in a few days. Just wanted to let you know for prioritization purposes. Thank you.

nmadland avatar Jul 29 '24 20:07 nmadland

Will we need to update RulesEngine then from 5.0.3 to another version? It seems that System.Linq.Dynamic.Core has patched the issue.

solo812 avatar Dec 26 '24 23:12 solo812