如何将两个Windows应用程序项目合并到一个Windows应用程序中
问题描述:
我分别开发了两个Windows应用程序,现在我想将两个项目合并为单个项目。
I have a developed two windows application separately,now i want to merge the two project into single project.
答
如果你自己开发了应用程序那么你会得到你的项目代码(两者都有)。您可以使用相同的代码,并创建一个新的Empty项目。在这个空项目中,您可以在其中添加这两个项目,但是您将拥有一个共同的条目应用程序;例如控制台应用程序,它将运行这两个其他项目。
提示:如果我必须创建项目,我会创建一个简单的项目库,我将使用这些项目 - 在我的实际项目中使用它们。或者,我会使用它们中的类文件并将它们粘贴到我的实际单个项目中。
If you've developed the application yourself then you would have the code for your projects (both of them). You can use the same code, and create a new Empty project. Inside that empty project, you can add both of these projects in it, but you're going to have a common entry applicatin; such as Console application, that would run those two other projects.
Tip: If I had to create the project, I would have created a simple library of those projects which I am to use then re-use them in my actual project. Or, I would have just used the class files from them and pasted them inside my actual single project.