private bool IsAssemblyDebugBuild(Assembly assembly) { return assembly.GetCustomAttributes(false).Any(x =>(x as DebuggableAttribute)!=null?(x as DebuggableAttribute).IsJITTrackingEnabled:false); }