繁体   English   中英

这两个软件包之间有什么区别:Microsoft.WindowsAzure.Storage和Microsoft.WindowsAzure.MobileServices.Files

[英]What the different between these two packages : Microsoft.WindowsAzure.Storage and Microsoft.WindowsAzure.MobileServices.Files

我目前需要将文件存储到Azure Blob存储中。 我遇到了两种不同的资源,但不确定第二套软件包是否适用。

我可能只需要访问前两个包的Blob存储。

    using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Blob;

https://docs.microsoft.com/zh-cn/azure/app-service-mobile/app-service-mobile-xamarin-forms-blob-storage中 ,它说在Xamarin.Forms应用程序中连接到Azure存储。

 using Microsoft.WindowsAzure.MobileServices.Files;
 using Microsoft.WindowsAzure.MobileServices.Files.Metadata;
 using Microsoft.WindowsAzure.MobileServices.Files.Sync;
 using Microsoft.WindowsAzure.MobileServices.Sync;

第一组软件包的问题要求我使用共享库而不是PCL。

WindowsAzure.Storage(第一组命名空间)是Azure存储服务的客户端库。 Microsoft.Azure.Mobile.Client.Files(第二组名称空间)是Azure移动应用程序的客户端扩展。

如果您使用的是Mobile Apps SDK,并且希望在其抽象中工作,则可以使用第二个库。 如果要访问Azure存储的所有功能,则可以使用第一个项目。

从8.0版开始,Azure存储客户端包含一个netstandard 1.0外观,其外观类似于PCL。

暂无
暂无

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

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