在 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,它仍然无法打包。
(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/