Azure 辅助角色与 .Net 4.5.2 的兼容性

标签 azure azure-worker-roles

在 Visual Studio(安装了 Azure SDK 2.2 和 2.3)中,我在尝试运行 Azure 辅助角色时遇到错误:

The role X is using an unsupported TargetFrameworkVersion v4.5.2

我应该使用最新的 SDK 来获取它吗?是否有提供兼容性的日期?

最佳答案

Azure SDK 2.6 仅允许您构建 .NET 4.5.2 包。您仍然需要添加启动脚本并手动安装框架。

现在查看:https://azure.microsoft.com/en-us/documentation/articles/cloud-services-dotnet-install-dotnet/

2015 年 4 月更新

使用Azure 2.6 SDK(三)

With Azure SDK 2.6 you can develop cloud service applications (PaaS) targeting .NET 4.5.2 or .NET 4.6 provided that you manually install the target .NET Framework on the Cloud Service Role. See Install .NET on a Cloud Service Role.

2014 年 11 月更新

他们没有在 SDK 2.5 中添加支持。

Using Azure SDK version 2.5 you can develop IaaS applications targeting .NET Framework 4.5.2 or .NET Framework 4.5.3, provided that you install the target .NET Framework on the Azure virtual machines that run them. .NET Framework 4.5.1 is the most recent supported target framework for PaaS applications developed using this version of the SDK (2)

本应于今天与 2.5 SDK 一起发布 (1)

At currently, we couldn't create and deploy azure cloud service using .net 4.5.2, this will be supported when azure sdk 2.5 released.

但是即使安装了 2.5,它仍然无法打包。

(1) https://social.msdn.microsoft.com/Forums/azure/en-US/9eab0cd9-c312-4901-95e6-5df2a29f7135/how-to-build-and-deploy-web-or-worker-roles-using-net-452?forum=windowsazuredevelopment

(2) http://msdn.microsoft.com/en-us/library/azure/dn873976.aspx

(3) http://azure.microsoft.com/en-gb/documentation/articles/azure-sdk-dotnet-release-notes-2_6/

关于Azure 辅助角色与 .Net 4.5.2 的兼容性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24054645/

相关文章:

python - 事件中心中具有不同分区键的一批事件

azure - Terraform 工作区不同的变量

azure - Windows Azure 云服务中的 UDP 多播

c# - 如何从 Azure 角色内部检测当前订阅 ID?

azure - Azure 辅助角色上的并发连接

Azure 帐户因信用额度而暂停意味着云服务实例部署会自动删除 - 缓解措施?

java - 如何在生产中部署 H2O flow pojo 文件

c# - Azure Blob 存储 blob 到索引

azure - 逻辑应用 - O365 连接器 - 多重身份验证

visual-studio - Visual Studio找不到我的Azure订阅