无法在 Bot Framework 4.9 中初始化 AzureBlobStorage
Cannot AzureBlobStorage initialization in Bot Framework 4.9
我正在通过引用 "Microsoft.Bot.Builder.Azure" 来实现 "AzureBlobStorage",但是当我初始化时我收到一个错误 "CloudStorageAccount"。
Error CS7069 Reference to type 'CloudStorageAccount' claims it is defined in 'Microsoft.Azure.Storage.Common', but it could not be found QBotSolution
解决方案资源管理器:
看起来 Visual Studio 无法确定您正在尝试使用哪个包。如果你只是想做传统的机器人状态管理,你应该删除这些包:
- Azure.Storage.Blobs
- Microsoft.Azure.Cosmos.Table
- Microsoft.Azure.Storage.Blob
- Microsoft.Azure.Storage.Common
对于 bot Blob 存储,您应该只需要 Microsoft.Bot.Builder.Azure
,因此请务必在您尝试在其中使用的任何文件的顶部包含 using Microsoft.Bot.Builder.Azure;
。
这里有一些很好的参考资料:
我正在通过引用 "Microsoft.Bot.Builder.Azure" 来实现 "AzureBlobStorage",但是当我初始化时我收到一个错误 "CloudStorageAccount"。
Error CS7069 Reference to type 'CloudStorageAccount' claims it is defined in 'Microsoft.Azure.Storage.Common', but it could not be found QBotSolution
解决方案资源管理器:
看起来 Visual Studio 无法确定您正在尝试使用哪个包。如果你只是想做传统的机器人状态管理,你应该删除这些包:
- Azure.Storage.Blobs
- Microsoft.Azure.Cosmos.Table
- Microsoft.Azure.Storage.Blob
- Microsoft.Azure.Storage.Common
对于 bot Blob 存储,您应该只需要 Microsoft.Bot.Builder.Azure
,因此请务必在您尝试在其中使用的任何文件的顶部包含 using Microsoft.Bot.Builder.Azure;
。
这里有一些很好的参考资料: