Referring to the "Configuration Manager" under the Build menu.
Is there a way to comment my C# code so that the commented out code does not compile while the solution is in Debug mode, but would compile if I changed it to Release mode?
Update: Judging by the answers, I should have said why I wanted this. The reason I want to have code that will be compiled in Release mode but not in Debug is that I've got some code that will not work from my dev PC (code that sends emails from my host, etc...).
Instead of having to run back through my code and uncomment lines before publishing, I'd like that to be automatic.