我正在使用 Azure DevOps 部署 .Net Web 应用程序。我想更新到基于 Windows 2019 的新 Os 系列,这样我就可以将我的项目更新到 .net Framework 版本 4.7.2,如 here 所示。 。我已将云服务配置“.cscfg”文件更新为 osFamily="6",但是当我尝试部署应用程序时,即使构建成功,当我到达 Azure 管道中的发布步骤时,我也会收到此错误:
The OS family 6 you are trying to deploy is not supported by the SDK package. The SDK package supported OS families:3,4,5,1,2,98,97. Please try to deploy to a different operating system. To do this specify a different osFamily and/or osVersion in your .cscfg file.
我正在使用托管 VS2017 代理。
最佳答案
根据错误信息,表明Hosted VS2017代理不支持OS family 6。
根据您提到的链接,兼容的 SDK 版本应该是版本 2.9.6+。
所以我的解决方法是您可以使用 Self-host 安装了最新 Azure SDK 的代理。我们可以从这个link下载最新的Azure SDK。 .
或者您可以尝试在 Host 2017 代理上安装 Azure SDK(无需测试)
您也可以给您的 feedback致 Azure DevOps 团队。
关于azure - 将 Azure 云服务更新到操作系统系列 6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54422054/