Visual Studio project build as an executable AND a DLL
- by East of Nowhere
In Visual Studio 2008 project properties, Application tab, I can set the Output type to Windows Application, Console Application, or Class Library. I have a project that I want to build as a stand-alone tool (console app) and be available to a couple other tools I'm working on as a class library.
The VS GUI only lets me choose one or the other, and building the proj twice all the time is inconvenient.
How can I set it up to build both output types in a single build job? Do I write some custom MSBuild .targets file or what?