C# Windows Azure计算机上不支持
我刚刚将我的项目升级到Azure 2.6 SDK。我的角色从emulator开始,它们似乎工作正常。在我的生成日志中,我看到以下消息: C:\Program Files(x86)\MSBuild\Microsoft\VisualStudio\v12.0\Windows Azure Tools\2.6\Microsoft.WindowsAzure.targets(2695,5):警告:项目{0}的目标是{1},Microsoft Azure虚拟机(OSFamily={2}')不支持该目标。要确保角色启动,请更新服务配置文件“{3}”中的“osFamily”属性。请参阅更多信息 这是我的CFG文件:C# Windows Azure计算机上不支持,c#,azure,msbuild,C#,Azure,Msbuild,我刚刚将我的项目升级到Azure 2.6 SDK。我的角色从emulator开始,它们似乎工作正常。在我的生成日志中,我看到以下消息: C:\Program Files(x86)\MSBuild\Microsoft\VisualStudio\v12.0\Windows Azure Tools\2.6\Microsoft.WindowsAzure.targets(2695,5):警告:项目{0}的目标是{1},Microsoft Azure虚拟机(OSFamily={2}')不支持该目标。要确保角
<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)
是关于升级过程的文档。也有同样的问题