From Ted Graham, basically you just stick a conditional item into AssemblyInfo.cs - very neat tip! See his post for more details.