I would like to enable/disable some code based on a custom solution configuration I added in Visual Studio. How do I check this value at runtime?
In each project's properties under the build section you can set different custom constants for each solution configuration. This is where you define custom pre-compiler directives.