Click here to Skip to main content
16,016,489 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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?
Posted
Comments
Sergey Alexandrovich Kryukov 18-Jan-12 4:45am    
Why, why two executables from one project?!
--SA

1 solution

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.
 
Share this answer
 
Comments
Alan Tuscano 18-Jan-12 4:27am    
ah, okay.. now i get it.. :)

Tnx..
Sergey Alexandrovich Kryukov 18-Jan-12 4:47am    
What DLL? If this is VB6 (my guess), creating DLL is a problem.
--SA
Member 14519466 22-Jul-19 23:15pm    
Hello
I have a desktop application solution with two different projects. i) ABC ii) XYZ.
Both projects have the same database.

Now when I publish a folder to a project I want to create a separate .exe for each project.

Why I want this?: Because ABC is my main project that was installed on the client PC. XYZ contains only one method that executes the task scheduler on the first day of each month.

How do I do it?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900