Microsoft.Azure.Storage和WindowsAzure.Storage Nuget包之间有什么区别? [英] What is the difference between the Microsoft.Azure.Storage and WindowsAzure.Storage Nuget packages?

查看:121
本文介绍了Microsoft.Azure.Storage和WindowsAzure.Storage Nuget包之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直觉得这很令人困惑. Microsoft提供了一个WindowsAzure.Storage Nuget软件包,该软件包可让您使用例如blob存储(创建blob等).也有Microsoft.Azure.Storage.*软件包也可以完成相同的任务,也由Microsoft创作.如果您的项目碰巧同时依赖于两者,则可能会出现命名冲突,例如(类型"CloudStorageAccount"同时存在于"Microsoft.Azure.Storage.Common"和"Microsoft.WindowsAzure.Storage……"中.)

I've always found this very confusing. There is a WindowsAzure.Storage Nuget package authored by Microsoft which allows you to work with, for example, blob storage (creating blobs, etc.). There are also Microsoft.Azure.Storage.* packages which accomplish the same thing, also authored by Microsoft. If your project happens to have dependencies on both, you can have naming conflicts e.g. (The type 'CloudStorageAccount' exists in both 'Microsoft.Azure.Storage.Common, ... and 'Microsoft.WindowsAzure.Storage, ...).

以下是两个替代方法的链接:

Here are links to the two alternatives:

https://docs. microsoft.com/en-us/dotnet/api/overview/azure/storage?view=azure-dotnet

https://github.com/Azure/azure- storage-net/blob/master/README.md

有什么区别?什么时候我会被激励使用一个?

What is the difference and when would I be motivated to use one over the other?

推荐答案

WindowsAzure.Storage(最新版本为v9.3.2)是我们一直使用的旧版Storage SDK,而Microsoft.Azure.Storage.*(最新版本v9.4.0)是其新版本, nuget可用大约一年.

WindowsAzure.Storage(latest is v9.3.2) is the legacy Storage SDK we always use and Microsoft.Azure.Storage.*(latest v9.4.0) is its new release, nuget available about one year.

检查Storage的更改日志. NET SDK.列出这些重要差异/变化的一部分.

Check the changelog of Storage .NET SDK. List part of those important differences/changes.

  1. Microsoft.Azure.Storage将库分为Blob,Queue和File三个部分,这意味着我们可以安装单独的软件包而不是完整版本.

  1. Microsoft.Azure.Storage splits libraries to three parts, Blob, Queue and File, which means we can install separate package instead of the full edition.

Microsoft.Azure.Storage不支持Table API,它已转移到 Microsoft.Azure.Cosmos.Table .

Microsoft.Azure.Storage doesn't support Table API, it is transferred to Microsoft.Azure.Cosmos.Table.

Microsoft.Azure.Storage从9.4.0-preview开始增加了NetStandard2.0目标支持,该支持支持包装在异步API上的同步方法. NetStandard上的WindowsAzure.Storage仅具有异步API.

Microsoft.Azure.Storage added NetStandard2.0 target support since 9.4.0-preview, which supports synchronous methods wrapped over the asynchronous APIs. WindowsAzure.Storage on NetStandard only has asynchronous APIs.

Microsoft.Azure.Storage v9.4软件包暂时转回使用Microsoft.WindowsAzure.Storage命名空间,以简化现有库的过渡.

Microsoft.Azure.Storage v9.4 package moves back to use Microsoft.WindowsAzure.Storage namespace temporarily to ease the transition for existing libraries.

只需根据我们的要求进行选择.

Just make choices based on our requirement.

这篇关于Microsoft.Azure.Storage和WindowsAzure.Storage Nuget包之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆