从1个项目创建2个Exe [英] Create 2 Exe from 1 Project

查看:58
本文介绍了从1个项目创建2个Exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我尝试从我的项目中创建2个可执行文件DAILY_UPLOAD和SCHEDULED_UPLOAD,

还为2 exe创建了单独的文件夹?

然后,我运行最后一个生成文件SCHEDULED_UPLOAD,它可以正常工作.

但是,当我运行DAILY_UPLOAD时,内容与SCHEDULE_UPLOAD相同,与我构建另一个Exe时相同,而DAILY_UPLOAD是最后构建的.然后我每天运行,一切都很好,但是当我运行SCHEDULED时,它会每天打开.

可以从1个项目中创建一个项目的2个可执行文件吗?

还是我需要为另一个Exe创建另一个Project文件夹?

Hi,

I''ved tried creating 2 Executables from my Project, DAILY_UPLOAD and SCHEDULED_UPLOAD,

also created a separate Folder for the 2 exe?

I then run the last build exe, SCHEDULED_UPLOAD, and it work.

But, when I run DAILY_UPLOAD, contents is same with SCHEDULE_UPLOAD, same as when i build another Exe, and DAILY_UPLOAD was builded last. i then run DAILY and everythings fine, but when i run SCHEDULED, it opened DAILY.

Is it okay to create 2 Executables of a project from 1 Project ?

Or do I need to create another Project folder for the other Exe?

推荐答案

您不会从单个项目中创建两个exe文件-每个项目都会生成一个输出文件,无论是EXE还是DLL.
但是一个解决方案可以包含许多项目:将每个EXE设置为一个单独的项目,您将获得所需的两个EXE文件.

如果两个项目具有相同的代码,则创建三个项目是一个好主意-将第三个项目设为DLL,并在其他两个项目中添加对其的引用.
You don''t create two exe files from a single project - each project produces a single output file, be it EXE or DLL.
But a Solution can contain a number of projects: set each EXE up as a separate project and you will get the two EXE files you want.

It is a good idea to create three projects, if the two have code in common - make the third a DLL and add references to it in the other two.


这篇关于从1个项目创建2个Exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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