如何合并两个不同的Visual Studio解决方案? [英] How do I merge two different Visual Studio solutions?

查看:590
本文介绍了如何合并两个不同的Visual Studio解决方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个Visual Studio 2005解决方案,其中一个构建二进制文件及其所有依赖项,其中一个构建Web应用程序以及一些实用程序和安装程序.到目前为止,我们已经将上述二进制文件作为静态文件包含在安装程序中.我想从该二进制文件的解决方案中提取所有项目,并将它们作为安装程序解决方案的一部分,以单次构建所有内容.

I have two Visual Studio 2005 solutions, one of which builds a binary and all of its dependencies, and one of which builds a web app and some utilities and an installer for them. Up until now, we've had the aforementioned binary just included in the installer as a static file; I want to take all of the projects from that binary's solution and have them be part of the installer solution, for a single once-through build of everything.

据我所知,我不能在不丢失依赖项信息的情况下从二进制解决方案中添加现有项目.这将起作用,但是由于涉及到20个项目,因此我想在移入项目时保留依赖项信息.看起来我可能只需要在带有解决方案XML的文本编辑器中执行此操作……是否有更好的解决方案?方式吗?

As far as I can tell, I can't add the existing projects from the binary's solution without losing the dependency information. This will work, but since there are 20 some projects involved, I want to preserve dependency information when moving the projects in. It's looking like I may just have to do this in a text editor with the solution XML... is there a better way?

请注意,这与有关合并同一解决方案文件的两个版本的相关问题不同.

Note that this is NOT the same as the related questions about merging two versions of the same solution file.

推荐答案

有一种方法可以将其内置到Visual Studio中.右键单击解决方案,然后选择添加-现有项目.从那里选择其他解决方案.

There's a way to do this built in to Visual Studio. Right click the solution, and select Add - Existing Project. Select the other solution from there.

这篇关于如何合并两个不同的Visual Studio解决方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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