Geta / geta-optimizely-categories

An alternative to Optimizely's default category functionality, where categories are instead stored as localizable IContent.
5 stars 10 forks source link

Geta.Optimizely.Categories.Extensions.IEnumerableExtensions.MemberOfAll() or MemberAny() gives build error. #15

Closed Deepa-Puranik closed 2 years ago

Deepa-Puranik commented 2 years ago

As IEnumerableExtensions using internal access modifier, as its been removed access from this package. If we want to utilize these how to access these methods? Is it no longer needed?

brianweet commented 2 years ago

These extensions were not strictly in the scope of this package (they're extensions for content references) and therefore I've decided to make them internal only. It's a breaking change I failed to document.

I understand that the methods are useful, therefore I've added them to our Geta.Optimizely.Extensions package: https://github.com/Geta/geta-optimizely-extensions/releases/tag/v2.1.0 The nuget package has been uploaded to the opti nuget feed and should be available shortly.

Another option is to copy the extension methods into your own solution.

Deepa-Puranik commented 2 years ago

Thank you for your quick response. Those extensions will be really helpful if it comes in package. New changes will be done only for .net 6 or will it be available for .net 5 as well?

brianweet commented 2 years ago

@Deepa-Puranik The extension package is available on the Opti nuget feed: https://nuget.optimizely.com/package/?id=Geta.Optimizely.Extensions&v=2.1.0 It has been migrated to .NET 6 but I think you should be able to use it on .NET 5 as well