简体   繁体   English

Azure:升级到Azure SDK v2.1

[英]Azure: Upgrading to Azure SDK v2.1

We just upgraded to Visual Studio 2012 and installed the Azure 2.1 SDK. 我们刚刚升级到Visual Studio 2012,并安装了Azure 2.1 SDK。 When we opened our Azure project in VS 2012 it upgraded the Azure project to use the 2.1 version (from 1.6) but the ASP.Net MVC project and other class library projects that utilize the SDK as well did not have any of their references changed to use the new libraries. 当我们在VS 2012中打开Azure项目时,它将Azure项目升级为使用2.1版本(从1.6开始),但ASP.Net MVC项目和其他使用SDK的类库项目也没有将其任何引用更改为使用新库。 They all still point to the 1.6 bits. 它们仍然指向1.6位。 Is there a way to upgrade all references to libraries used to the 2.1 SDK? 有没有一种方法可以将所有引用升级到用于2.1 SDK的库? We have references to Windows Azure Storage Clients, Caching Clients, Diagnostics etc and I'm afraid we will miss something just removing old references and adding new ones. 我们已经引用了Windows Azure存储客户端,缓存客户端,诊断程序等,恐怕只是删除旧引用并添加新引用,我们会错过一些东西。

I would not recommend blindly updating the libraries as there have been significant changes. 我不建议盲目更新库,因为已经进行了重大更改。

Storage client library 2.0 (which is part of SDK 2.1) is drastically different (though much better IMHO) from previous versions. 存储客户端库2.0(SDK 2.1的一部分)与以前的版本完全不同(虽然更好的恕我直言)。 There have been namespace changes, some methods were removed. 有命名空间更改,删除了一些方法。

Diagnostics libraries in SDK 2.1 have a dependency on Storage Client library 2.0. SDK 2.1中的诊断库依赖于Storage Client库2.0。 Again, I would not recommend upgrading that either. 同样,我也不建议升级它。

My recommendation would be to evaluate the impact of upgrading libraries from 1.6 to 2.0. 我的建议是评估将库从1.6升级到2.0的影响。 Please go through the following blog posts by storage team: 请通过存储团队浏览以下博客文章:

http://blogs.msdn.com/b/windowsazurestorage/archive/2012/10/29/introducing-windows-azure-storage-client-library-2-0-for-net-and-windows-runtime.aspx http://blogs.msdn.com/b/windowsazurestorage/archive/2012/10/29/introducing-windows-azure-storage-client-library-2-0-for-net-and-windows-runtime.aspx

http://blogs.msdn.com/b/windowsazurestorage/archive/2012/10/29/windows-azure-storage-client-library-2-0-breaking-changes-amp-migration-guide.aspx http://blogs.msdn.com/b/windowsazurestorage/archive/2012/10/29/windows-azure-storage-client-library-2-0-breaking-changes-amp-migration-guide.aspx

http://blogs.msdn.com/b/windowsazurestorage/archive/2012/11/06/windows-azure-storage-client-library-2-0-tables-deep-dive.aspx http://blogs.msdn.com/b/windowsazurestorage/archive/2012/11/06/windows-azure-storage-client-library-2-0-tables-deep-dive.aspx

I also wrote a series of blog posts on upgrading code to 2.0 version which you can read here: 我还写了一系列有关将代码升级到2.0版本的博客文章,您可以在此处阅读:

http://gauravmantri.com/2012/11/17/storage-client-library-2-0-migrating-table-storage-code/ http://gauravmantri.com/2012/11/17/storage-client-library-2-0-migrating-table-storage-code/

http://gauravmantri.com/2012/11/24/storage-client-library-2-0-migrating-queue-storage-code/ http://gauravmantri.com/2012/11/24/storage-client-library-2-0-migrating-queue-storage-code/

http://gauravmantri.com/2012/11/28/storage-client-library-2-0-migrating-blob-storage-code/ http://gauravmantri.com/2012/11/28/storage-client-library-2-0-migrating-blob-storage-code/

http://gauravmantri.com/2012/12/26/storage-client-library-2-0-exception-handling/ http://gauravmantri.com/2012/12/26/storage-client-library-2-0-exception-handling/

http://gauravmantri.com/2012/12/30/storage-client-library-2-0-implementing-retry-policies/ http://gauravmantri.com/2012/12/30/storage-client-library-2-0-implementing-retry-policies/

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

相关问题 将Azure SDK升级到2.9.6时生成错误-无法获取设置值参数名称:profileName - Build Error on upgrading Azure SDK to 2.9.6 - Unable to get setting value Parameter name: profileName ASP.NET Core MVC 2.1 查看编译发布到 Azure - ASP.NET Core MVC 2.1 View Compilation on Publish to Azure 在 Azure 网站中使用 Azure SDK 出现间歇性 SSL/TLS 错误 - Intermittent SSL/TLS error using Azure SDK in Azure Website Azure移动服务器SDK:何时评估IQueryable? - Azure Mobile Server SDK: When the IQueryable is evaluated? Azure Cloud Storage SDK UploadFromStreamAsync存储0字节 - Azure Cloud Storage SDK UploadFromStreamAsync storing 0 bytes 如何在Azure网站上禁用SSL v 3.0 - How to disable SSL v 3.0 on Azure Website 如何使用Azure AD访问令牌对.NET Core 2.1 API进行身份验证 - How to Authenticate to .NET Core 2.1 API using Azure AD Access Token 添加Azure SDK后挂起Visual Studio 2015 - Visual Studio 2015 hanging after adding Azure SDK 为什么在Azure SDK中使用Azure云服务项目而不是ASP.NET项目? - Why use an Azure Cloud Service Project instead of an ASP.NET project with the Azure SDK? Microsoft.Net.Compilers v2.0.1在Azure上失败 - Microsoft.Net.Compilers v2.0.1 fails on Azure
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM