使用C#将两个项目合并到一个项目中 [英] merge two projectsin a single project using C#

查看:1039
本文介绍了使用C#将两个项目合并到一个项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我有一个名为员工数据库的项目
我在文本框中有另一个名为修改数据"的项目


我如何合并两者,以便在单个项目中都能同时影响两者?

解决方案

如果通过合并,您的意思是像合并中那样合并,那么您可以将ProjectB中的文件复制到ProjectA.

如果通过合并表示要在另一个项目中使用,则需要右键单击将使用其他两个项目的项目,然后单击添加引用",然后选择这两个项目.


创建一个新的解决方案,将项目文件夹复制到新解决方案的文件夹中.最后,在VS中打开解决方案,右键单击它,然后将现有项目添加到其中.


hi i have a project named employee database
i have another project named modify data in text box


how can i merge both so that in a single project i can have the impact of both

解决方案

If by merge you really mean merge as in combine, then you can just copy the files in ProjectB into ProjectA.

If by merge you mean use in another project then you need to right click your project which will use the other two and click Add Reference, then select those two projects.


Create a new solution, copy the project folders into the new solution''s folder. Finally open the solution in VS, right click it, and add the existing projects to it.


这篇关于使用C#将两个项目合并到一个项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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