在C#中合并两个不同的项目 [英] Combine two different project in C#

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

问题描述

大家好;

我如何在C#中集成或组合2个不同的项目?:confused:

Hye all;

How can i integrate or combine 2 different project in C#?:confused:

推荐答案

您应该知道确切的异常发生的时间.现在,调试并检查问题出在哪里.

另外,如果项目由于某种原因被拆分,则不应混用.现在,由于很多人都写了它,一旦找到原因,就可以解决并找出问题所在.
You should be knowing when exactly exception happens. Now, debug and check where exactly the problem is.

Plus, you should not mix the projects if they were split for some reason. Now, since many people have written it, once you identify the cause, approach them and figure out the problem.


这两个项目是否相关?盲目地将它们组合会导致变量方法等的名称不明确.这将给重命名事物带来很大的麻烦.

如果两个项目没有任何关系,则可以:

1.将一个项目的引用添加到其他项目,或者
2.将所有文件从一个项目复制到另一个项目(使用添加现有项选项).但是请确保它不会干扰您项目的功能.

如果您只是想将现有项目添加到现有解决方案中,请在解决方案资源管理器中右键单击现有解决方案,然后选择添加现有项目选项并将其添加.
Are those two projects related? Combiniing them blindly blindly result in ambiguous names of variables methods etc. This will result in a lot of pain to rename things.

If the two projects do not have any relation, you can either:

1. Add the reference of one project to other, or
2. Copy all the files from one project to other (using add existing item option). But make sure it does not messes up with the functionality of your project.

If you meant just to add an existing project to an existing solution, right click on the existing solution in solution explorer and choose add existing project option and add it.


如果它们是DLL您也可以编译项目,然后只需从所需的任何其他项目中添加对这些DLL的引用.
If they''re DLL''s, you could also compile the projects then just add references to those DLL''s from whatever other project you want.


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

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