#if debug --> #if myOwnConfig?
is there a way in c# to use a custom Configuration like "#if DEBUG" I need a "#if OFFLINE" as my Build-Config's name is "Offline" (only for further debug-purposes too)... Thanks! Build -> Configuration manager -> Active solution configuration -> New... Create a new configuration "Offline". Project -> Properties -> Build -> Configuration -> Offline Conditional compilation symbols: type OFFLINE Save project. Yes, you can. But before you can, follow these steps: In Visual Studio, go to Properties -> Build. At the configuration dropdown, select "Offline" Add "OFFLINE" to the "Conditional