简体   繁体   English

从Visual Studio 2010解决方案中卸载.vdproj(Visual Studio部署项目)

[英]Unload .vdproj (visual studio deployment project) from visual studio 2010 solution

I have a solution under source control, one of the projects in it is vdproj (Visual Studio Deployment Project) or setup project, this project gives me very annoying tens of messages every time i try to build the solution 我有一个受源代码控制的解决方案,其中的一个项目是vdproj(Visual Studio部署项目)或安装项目,每次我尝试构建解决方案时,此项目都会给我带来非常烦人的消息

---------------------------
Microsoft Visual Studio
---------------------------
The command you are attempting cannot be completed because the file 'XXXXInstaller.vdproj' is under source code control and is not checked out.
---------------------------
OK   Help   
---------------------------

Visual Studio错误消息-VDProj错误

The question is: How to unload this project from the solution, when i try to unload it, there are no such option in the right-click context menu! 问题是:如何从解决方案中卸载该项目,当我尝试卸载它时,右键单击上下文菜单中没有此类选项!

在此处输入图片说明

I've found the issue raised on Microsoft Connect . 我已经在Microsoft Connect上发现了这个问题 It seems that "unload" is supported, but just not shown on the context menu. 似乎支持“卸载”,但上下文菜单上没有显示。 In other words, selecting the project and using the normal "Project" menu (next to "View") still shows the option "Unload project". 换句话说,选择项目并使用常规的“项目”菜单(“视图”旁边)仍显示选项“卸载项目”。

Another idea: If you keep your the deployment projects in a solution folder, you can use "Unload all projects in solution folder" from the context menu provided by the Microsoft Productivity Power Tools . 另一个想法:如果将部署项目保留在解决方案文件夹中,则可以使用Microsoft Productivity Power Tools提供的上下文菜单中的“卸载解决方案文件夹中的所有项目”。

@MSS,作为一种变通办法,您可以通过注释相应的.vdproj项目来编辑解决方案文件。

You can also select multiple projects in Solution Explorer (you will be able to unload at least one of them) and unload them. 您还可以在解决方案资源管理器中选择多个项目(您将能够卸载其中至少一个)并卸载它们。 Then reload required projects. 然后重新加载所需的项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM