简体   繁体   English

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

[英]Deploying Azure Cloud Service targeting .NET Framework 4.6

Details: 细节:

  • I have Azure App Service Tools v2.9.6 installed. 我安装了Azure App Service Tools v2.9.6。
  • My cloud configuration specifies osFamily="5" (Windows Server 2016) 我的云配置指定osFamily =“5”(Windows Server 2016)
  • osVersion="*" OSVERSION = “*”

The SDK package you are trying to deploy is not supported by the operating system you have chosen. 您选择的操作系统不支持您尝试部署的SDK包。 The operating system you are trying to deploy to is: Windows Server 2016. Verify osFamily and/or osVersion settings in your .cscfg file. 您尝试部署的操作系统是:Windows Server 2016.验证.cscfg文件中的osFamily和/或osVersion设置。

According to this document from MS , this should be supported. 根据MS的这份文件 ,应该支持这一点。 How do I get this service deployed? 如何部署此服务?

It turns out that this project was created with Azure SDK 2.8. 事实证明,该项目是使用Azure SDK 2.8创建的。 To get the project to build with the updated SDK, I had to change the following line in my .ccproj file: 要使用更新的SDK构建项目,我必须更改.ccproj文件中的以下行:

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

to: 至:

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

It's basically following the reverse of the procedure outlined here . 它基本上遵循此处概述的程序的相反方向。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM