Visual Studio 11 beta 是否缺少“添加可部署程序集"?菜单选项? [英] Is Visual Studio 11 beta missing the "Add Deployable Assemblies" menu option?

查看:24
本文介绍了Visual Studio 11 beta 是否缺少“添加可部署程序集"?菜单选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio 2010 SP1 中,Web 项目的右键单击菜单中有一个用于添加可部署程序集的选项.Phil Haack 在博客这里.

In Visual Studio 2010 SP1, there is an option on the right-click menu on a web project to Add Deployable Assemblies. Phil Haack blogged about it here.

Visual Studio 11 betaVisual Studio 2012 中,似乎缺少此选项.值得庆幸的是,您可以轻松地在 VS 2010 和 VS 11 之间往返解决方案,因此我可以在 VS 2010 中打开解决方案,将 MVC 程序集添加到 _bin_deployableAssemblies 文件夹.

In Visual Studio 11 beta and Visual Studio 2012, this option appears to be missing. Thankfully, you can easily round trip solutions between VS 2010 and VS 11 so I could just open the solution in VS 2010 to add the MVC assemblies to the _bin_deployableAssemblies folder.

是我的安装坏了还是我需要安装其他东西才能让它工作?

Is it just my installation thats broken or do I need to install anything else to get this working?

推荐答案

添加可部署程序集 对话框是一项使您能够部署 MVC 或网页项目的功能.这是必要的,因为在旧版本中,所有程序集都安装在您的开发机器上的 GAC 中,但您不一定知道服务器上是否是这种情况.因此,这种工具姿态使您的项目可部署.

The Add Deployable Assemblies dialog was a feature that enabled you to deploy MVC or Web Pages projects. It was necessary because in older versions all the assemblies were installed into the GAC on your dev machine but you wouldn't necessarily know if that was the case on the server. Thus this tooling gesture that made your project bin-deployable.

从 MVC 3 工具更新开始,我们现在使用 Nuget 包引用,这意味着您的项目可以自动进行 bin-deployable.由于不再需要工具手势,它已从 VS 11 中删除.

Starting with MVC 3 Tools Update we are now using Nuget package references, which means that your project is automatically bin-deployable. Since the tooling gesture is no longer necessary it was removed from VS 11.

这篇关于Visual Studio 11 beta 是否缺少“添加可部署程序集"?菜单选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆