title: HOWTO create a stand-alone executable per form for a C# solution in VS 2008 with multiple projects with multiple forms in a single build?
body: <p>I have a C# based solution in Visual Studio 2008 for a given problem domain. This solution has 1 + 5 projects. The first project is for resources that spans across the other 5 projects.</p>
  
  <p>Each project has multiple forms. By default, the build generates one executable per project. What I want rather is each form, which has no mutual dependency to the rest, to produce a stand-alone executable.</p>
  
  <p>I am aware that I could break each of the 5 prime projects into multiple projects and set "Startup Project" to "Multiple startup projects" and achieve my objective. But that will over-populate the solution with the number of projects increasing to mid double digits. I do not want to pursue the route of having a separate solution for the each of the 5 projects.</p>
  
  <p>Right now I invoke Application.Run as follows to accomplish my goal:</p>
  
  <pre><code>Application.Run(new fooForm());
  </code></pre>
  
  <p>and when I need to create an executable for another independent form, I change the form value to </p>
  
  <pre><code>Application.Run(new barForm());
  </code></pre>
  
  <p>and so on until I need another shot of espresso.</p>
  
  <p>Any hack to accomplish what I intend without me having to jump out of the window?</p>