asp.net-mvc - Visual Studio 中我的 Web 应用程序没有转换(到云服务)菜单项

标签 asp.net-mvc visual-studio azure azure-cloud-services azure-sdk-.net

当我右键单击我的 Web 应用程序时,Visual Studio 2015 中的 MVC Web 应用程序没有“转换”菜单选项。 Azure 模板已存在于 Visual Studio 中,如下所示,因此我猜想 Azure SDK 已安装在 Visual Studio 中。为什么我无法将网络应用程序转换为云服务?

enter image description here

enter image description here

我安装了 Microsoft Azure 应用服务工具 v.2.9.1 - Visual Studio 2015。

enter image description here

最佳答案

根据您的描述,我这边已经检查过这个问题。我的 MVC 应用程序的目标框架以 .NET Framework 4.6+ 为目标,我发现我也看不到 Convert 菜单,如下所示:

enter image description here

然后,我在网上搜索了一下,发现了类似的issue 。根据我的测试,我发现如果我将 .NET Framework 降级到低于 4.6,那么我可以看到转换、转换为 Azure 云服务项目命令,并且我可以将我的 Web 应用程序转换为 cloudservice 并部署成功连接到 azure 。

enter image description here

综上所述,您可以尝试看看是否对您有帮助。另外,你可以引用这个官方文档How to migrate and publish a web application to azure Cloud Service .

关于asp.net-mvc - Visual Studio 中我的 Web 应用程序没有转换(到云服务)菜单项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43832064/

相关文章:

c# - Visual Studio 不会从我的 nupkg 中读取 .pdb

c# - 无法删除表 dbo.Images,因为它不存在或您没有权限

Azure blob 的阻止列表为空,但 blob 不为空!怎么会这样?

powershell - Azure 文件共享不起作用

sql-server - MVC 5,App_Data 为空,尽管显示所有文件。

javascript - 使用ajax将整个模型发布回 Controller

ASP.NET Web Api - "PATCH"使用 Delta<...> 且双属性不起作用

asp.net-mvc - 在 ASP.NET MVC 中使用 jQuery 提交 AjaxForm

自调用函数中声明的类的 JavaScript Intellisense 在 Visual Studio 中不起作用

eclipse - 如何停止在 Windows 10 环境中本地运行的 Azure 函数