I'm migrating my Sitecore 8.1 solution to Sitecore 9.1.
The Sitecore.Bucket.Managers assembly is not supported anymore. What should I use to still deal with my buckets ? Is there any replacement of BucketManager ?
foreach (Item assetLibrary in assetLibraries)
{
if (BucketManager.IsBucket(assetLibrary))
{
BucketManager.Sync(assetLibrary);
}
searchIndex.Refresh((IIndexable)assetLibrary, IndexingOptions.ForcedIndexing);
}
Update: Content added from OP:
Yes, but the issue is that I cannot install the Sitecore.Buckets.dll version 9.1.1 in my solution :
Could not install package 'Sitecore.Buckets 9.1.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.7', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
And my solution needs .NET 4.7 Framework...