简体   繁体   中英

Deploying Azure Cloud Service targeting .NET Framework 4.6

Details:

  • I have Azure App Service Tools v2.9.6 installed.
  • My cloud configuration specifies 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.

According to this document from MS , this should be supported. How do I get this service deployed?

It turns out that this project was created with 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:

<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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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