【Azure】Publish Error of "%(TargetOSFamily.Identity)" that evaluates to "" instead of a number
在向Azure部署程序的时候,出现如下错误:
A numeric comparison was attempted on "%(TargetOSFamily.Identity)" that evaluates to "" instead of a number, in condition " '$(RoleTargetFrameworkMonikerIsValid)' == 'True' And '%(TargetOSFamily.Identity)' >= '3' And '$(RoleTargetFrameWorkIs35)' == 'True' ". C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Windows Azure Tools\2.2\Microsoft.WindowsAzure.targets
google了很久没有找到解决的方法,最终通过如下步骤解决:
1) 使用“Package”功能生成本地的待部署的package
2) 再使用“Publish”功能竟然恢复正常,虽然不知道为什么,但至少解决了不能直接部署的问题。