Search code examples
asp.net-corebotframeworkazure-storageazure-table-storagemanage-nuget-packages

Microsoft.Bot.Builder.Azure doesn't contain type or namespace 'AzureTableStorage'


Earlier nuget package 'Microsoft.Bot.Builder.Azure' had AzureTableStorage, AzureBlobStorage and CosmosDbStorage but now the latest version has only AzureBlobStorage and CosmosDbStorage . What if I need to used the TableStorage also the IStorage of Microsoft.Bot.Builder.IStorage doesn't allow table storage but only blob and cosmos dB storage. Is table storage not supported for IStorage or am I missing something? I have also tried upgrading all nuget packages and used target framework .NET Core 2.2


Solution

  • The provider for table storage was removed before the SDK was released due to limitations that the team didn't have time to work around. That said, as you can see, there is an IStorage abstraction that would allow you to write your own implementation on top of Azure Table Storage if that's something you think you need.

    Honestly, I don't know if I see much of a point in it. If you don't need the ability to perform ad-hoc queries over the data then blob storage is the cheapest, fastest option. If you do want to perform ad-hoc queries over the data, then table storage was never going to help you anyway due to it only having partition/row key indexability, so you'd need to go to something more powerful like CosmosDB which can index on all of the data.

    FWIW, if you wanted to resurrect the AzureTableStorage implementation, you can always grab the last version that existed before it was removed from the SDK here.