繁体   English   中英

使用Microsoft.WindowsAzure在命名空间中不存在StorageClient

[英]StorageClient does not exist in the namespace using Microsoft.WindowsAzure

这段代码以前工作但是在更新nuget包时似乎出现了问题。 如果我添加之前已部署的Microsoft.WindowsAzure.StorageClient dll,那么它无法识别Cloud类,例如CloudBlobClient,我正在使用WindowsAzure.Storage nuget 4.2

我需要这个能够写入azure文件服务,所以不能简单地取消注释

新的Microsoft.WindowsAzure.Storage.dll中不存在Microsoft.WindowsAzure.StorageClient命名空间。 我强烈建议删除所有对Microsoft.WindowsAzure.StorageClient.dll的引用并更改代码以使用新库。

如果在执行这些步骤后仍然无法看到Microsoft.WindowsAzure.Storage,则可以尝试卸载NuGet包并重新安装。

虽然Microsoft.WindowsAzure.StorageClient DLL可能已过时 ,但我成功地从https://nuget.org/packages/AzureSDK2.2DLLs/手动下载它并将其安装到Visual Studio 2013社区(使用其他答案中说明 )。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM