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?
You can use precompiler directives within Visual Studio. The #if directive will allow you to determine if you are going to include code or not based on your custom solution configuration.