且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将两个Windows应用程序项目合并到一个Windows应用程序中

更新时间:2023-11-22 16:26:34

如果你自己开发了应用程序那么你会得到你的项目代码(两者都有)。您可以使用相同的代码,并创建一个新的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.