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?
I'm not sure if you can figure out the exact name of the build configuration. Howerver, if you use Debug.Assert(...), that code will only be run when you compile in debug mode. Not sure it that helps you at all.