Possible Duplicate:
#if Not Debug in c#?
I am not have the permission to upload to the server so I am not able to test the #else part. I was wondering if this is the ideal way to have conditionally choose what drive letter to use depending on if in DEBUG (test mode) or in Production mode (#else part)
#if (DEBUG)
string driveLetter = "C:\\";
#else
string driveLetter = ConfigurationManager.AppSettings["ProdDrive"];
#endif