簡體   English   中英

在 Windows Azure 機器上不受支持

[英]Not Supported on Windows Azure Machine

我剛剛將我的項目升級到 Azure 2.6 SDK。 我的角色從模擬器開始,它們似乎工作正常。 在我的構建日志中,我看到以下消息:

C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v12.0\\Windows Azure Tools\\2.6\\Microsoft.WindowsAzure.targets(2695,5):警告 WAT250:項目“{0}”針對“{1” }' 在 Microsoft Azure 虛擬機上不受支持 (OSFamily = '{2}')。 要確保角色啟動,請更新服務配置文件“{3}”中的“osFamily”屬性。 有關更多信息,請參閱http://go.microsoft.com/fwlink/?LinkId=262840

這是我的 CFG 文件:

<ServiceConfiguration serviceName="CloudService1" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="3" osVersion="*" schemaVersion="2015-04.2.6">

我應該做些什么嗎?

此鏈接包含 osFamily 信息。 在撰寫本文時:

  • 家族 6 - Windows Server 2019 - .NET Framework:3.5、4.7.2
  • 家族 5 - Windows Server 2016 - .NET Framework:3.5、4.6.2
  • 家族 4 - Windows Server 2012 R2 - .NET Framework:3.5、4.5.1
  • 家族 3 - Windows Server 2012 - .NET Framework:3.5、4.5
  • 系列 2 - Windows Server 2008 R2 SP1 - .NET Framework:3.5(包括 2.0 和 3.0)

是有關升級過程的文檔。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM