.net - 部署面向 .NET Framework 4.6 的 Azure 云服务

标签 .net azure

详细信息:

  • 我安装了 Azure 应用服务工具 v2.9.6。
  • 我的云配置指定 osFamily="5"(Windows Server 2016)
  • osVersion="*"

The SDK package you are trying to deploy is not supported by the operating system you have chosen. The operating system you are trying to deploy to is: Windows Server 2016. Verify osFamily and/or osVersion settings in your .cscfg file.

根据this document from MS ,这个应该支持。如何部署此服务?

最佳答案

原来这个项目是用Azure SDK 2.8创建的。为了使用更新的 SDK 构建项目,我必须更改 .ccproj 文件中的以下行:

<CloudExtensionsDir Condition=" '$(CloudExtensionsDir)' == '' ">$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Windows Azure Tools\2.8\</CloudExtensionsDir>

至:

<CloudExtensionsDir Condition=" '$(CloudExtensionsDir)' == '' ">$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Windows Azure Tools\2.9\</CloudExtensionsDir>

它基本上遵循相反的过程 outlined here .

关于.net - 部署面向 .NET Framework 4.6 的 Azure 云服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41513093/

相关文章:

c# - 更新项目时,Datagrid 不维护排序

c# - 我怎样才能在 C# 中获得高达 128 位小数的精度?

c# - 隐式方法组转换陷阱(第 2 部分)

c# - 从 .Net 连接到 Informix 数据库

c# - ArgumentException 与 ArgumentNullException?

asp.net - Azure blob 是否需要文件扩展名?

.net - 是否可以在 Azure ACS 中配置规则,以便我可以将声明值与通配符/正则表达式进行匹配?

c# - 你调用的对象是空的。使用 TPM 设备客户端发送消息时

c# - 如何为我的 React/.NET Core 3.0 SPA Web 应用程序添加 Microsoft Identity/Azure AD 登录功能

c# - Azure 云存储 SDK UploadFromStreamAsync 不起作用