Visual Studio project build as an executable AND a DLL

Posted by East of Nowhere on Stack Overflow See other posts from Stack Overflow or by East of Nowhere
Published on 2010-03-17T22:55:50Z Indexed on 2010/03/17 23:01 UTC
Read the original article Hit count: 177

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?

© Stack Overflow or respective owner

Related posts about visual-studio-2008

Related posts about msbuild-target