private static bool IsTargetFrameworkValidOnCurrentOS(AssemblyDefinition assembly) { if (Environment.OSVersion.Platform != PlatformID.Win32NT) return (!assembly.get_HasCustomAttributes() ? 0 : (((IEnumerable<CustomAttribute>) assembly.get_CustomAttributes()).Any<CustomAttribute>((Func<CustomAttribute, bool>) (attr => APIUpdaterHelper.TargetsWindowsSpecificFramework(attr))) ? 1 : 0)) == 0; return true; }