azure - 如何升级现有云服务项目以使用 Azure SDK 3.0?

标签 azure visual-studio-2017 azure-cloud-services azure-sdk

我正在从 VS2015 迁移到 VS2017,并更新存储库的解决方案以便能够与 VS2017 兼容。在此过程中,我还将 Azure SDK 版本从 2.7 更新到 3.0。

我正在设置一个新的开发环境,并通过 VS2017 的 Azure development workload 安装了 Azure SDK 3.0 .

当我在存储库中打开解决方案文件时,每个云服务项目都收到一条通知,表明其 Microsoft Azure Tools 版本已从 2.7 升级到 2.9...

upgrade prompt

...相应 .csproj 文件中的 ProductVersion 标记已从 2.7 更新为 2.9。

问题:

  • 为什么没有更新到 3.0?

  • 我有办法更新吗 到 3.0 而不手动编辑 csproj 文件?我没有看到 当我右键单击云服务时,可以在“属性”中选择执行此操作 解决方案资源管理器中的项目。

  • 有什么理由我不应该这样做吗? 这样做吗?

最佳答案

您的屏幕截图中提到的“Microsoft Azure Tools - v2.9”只是有点误导。

根本原因是,作为 3.0 SDK 版本的一部分,微软并未真正更改大多数组件的版本号。甚至二进制文件也安装在与 2.9 相同的文件夹中。

好消息是,除了将项目转换为目标最新版本之外,您不需要执行任何特殊操作(系统已提示您执行此操作)。

因此,一旦您按照提示转换了项目,您实际上就是在使用 SDK 3.0,即使版本字符串显示为 v2.9,因为正如链接所解释的那样,大多数组件都没有更改主要版本号作为SDK 3.0版本的一部分(与2.9相比)

以下是一些讨论此问题的链接 -

Azure SDK for .NET 3.0 Release Summary

No breaking changes to the Azure SDK 3.0 have been introduced in this release. There is also no upgrade process needed to leverage this SDK with existing Cloud Service projects. To allow use of the Azure SDK 3.0 without requiring an upgrade process, Azure SDK 3.0 installs to the same directories as Azure SDK 2.9. Most the components did not change the major version from 2.9 but instead just updated the build number.

Visual Studio 2017 latest installer does not install Azure SDK 3.0

在此链接中查看 Devin Breshears - MSFT 的回复 enter image description here

Azure 3.0 SDK Install Weirdness 谈论同一问题的独立博客。

关于azure - 如何升级现有云服务项目以使用 Azure SDK 3.0?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52301502/

相关文章:

javascript - 无法在网络聊天中获取认知服务 token

php - 为什么我无法捕获 Azure PHP sdk 上的 ServiceException?

C++ 嵌套类相互引用

azure-cloud-services - 是否可以每隔一段时间重新启动 Azure 经典云服务角色?

c# - 为什么实例化 Azure 移动服务时出错?

Python 模块未找到错误 : No module named 'azure.cognitiveservices'

asp.net-core - 发布 polymer + ASP.NET Core

c# - 如何在.net core 1.1 csproj中添加工具部分

.net - 有没有办法防止 Azure 限制我的 csv 读取速度?

azure - 设置 Redis on Azure 云服务辅助角色