I write class libraries often, and usually add a Program.cs
so I can switch the output type to "console application" for debugging.
Is there a simple way to set VS up, so that:
- When I select debug configuration, it compiles to a console application
- When I select release configuration it compiles to a class library (and, if possible, excludes
Program.cs
from the build)