I have a C # based solution in Visual Studio 2008 for this problem domain. This solution has 1 + 5 projects. The first project is for resources that span the other 5 projects.
Each project has several forms. By default, the assembly generates one executable for each project. What I want, rather, is each form, which is not mutually dependent on the others, to create a standalone executable file.
I know that I could break each of the 5 main projects into several projects and set the “Startup Project” to “Several startup projects” and achieve my goal. But this will lead to overfilling of the solution with an increase in the number of projects to double digits. I do not want to go along the path of creating a separate solution for each of the 5 projects.
Now I call Application.Run as follows to accomplish my goal:
Application.Run(new fooForm());
and when I need to create an executable file for another independent form, I change the value of the form to
Application.Run(new barForm());
and so on, until I need another shot of espresso.
Anyone hack what I intend without me to jump out of a window?
source
share