Have you ever wanted to know if a compiled assembly was compiled in Debug or Release mode? I know I have.
For my part, I always make sure that the following snippet of code is in my AssemblyInfo.cs
#if (Debug || DEBUG) [assembly: AssemblyConfiguration("Debug")] #else [assembly: AssemblyConfiguration("Release")] #endif
This attribute doesn’t show up in the file properties (when viewed from Explorer) but it can be queried programmatically.