使用 .net 4.6 发布 Azure 云服务时出错

Error While publishing Azure Cloud service with .net 4.6

错误:"The feature named NetFx46 that is required by the uploaded package is not available in the OS * chosen for the deployment."

在服务配置文件 (*.cscfg) 中,将 osFamily="4" 更改为 osFamily="5"。