Visual Studio project build as an executable AND a DLL
.net, dll, msbuild, visual-studio-2008
Solution
If I'm not mistaken, you can use the EXE as a class library. Just add a reference to it, in the other projects. A .NET EXE is just an assembly.
Problem
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?