@@ -437,7 +437,17 @@ public override void Run (IEnumerable<string> args)
437437 ) ) ;
438438 this . assemblies . AddRange ( sets ) ;
439439 assemblyPaths . AddRange ( sets . SelectMany ( s => s . AssemblyPaths ) ) ;
440- Console . WriteLine ( $ "Frameworks Configuration contains { assemblyPaths . Count } assemblies") ;
440+ Console . WriteLine ( $ "Frameworks Configuration contains { assemblyPaths . Count } assemblies") ;
441+
442+
443+ if ( ! DisableSearchDirectoryRecurse )
444+ {
445+ // unless it's been explicitly disabled, let's
446+ // add all of the subdirectories to the resolver
447+ // search paths.
448+ foreach ( var assemblySet in this . assemblies )
449+ assemblySet . RecurseSearchDirectories ( ) ;
450+ }
441451
442452 // Create a cache of all frameworks, so we can look up
443453 // members that may exist only other frameworks before deleting them
@@ -457,7 +467,7 @@ public override void Run (IEnumerable<string> args)
457467 foreach ( var type in assembly . GetTypes ( ) )
458468 {
459469 var t = a . ProcessType ( type , assembly ) ;
460- foreach ( var member in type . GetMembers ( ) . Where ( i => ! DocUtils . IsIgnored ( i ) ) )
470+ foreach ( var member in type . GetMembers ( ) . Where ( i => ! DocUtils . IsIgnored ( i ) && IsMemberNotPrivateEII ( i ) ) )
461471 t . ProcessMember ( member ) ;
462472 }
463473 }
@@ -481,14 +491,6 @@ public override void Run (IEnumerable<string> args)
481491 if ( assemblyPaths . Count == 0 )
482492 Error ( "No assemblies specified." ) ;
483493
484- if ( ! DisableSearchDirectoryRecurse )
485- {
486- // unless it's been explicitly disabled, let's
487- // add all of the subdirectories to the resolver
488- // search paths.
489- foreach ( var assemblySet in this . assemblies )
490- assemblySet . RecurseSearchDirectories ( ) ;
491- }
492494
493495 // validation for the api-style parameter
494496 if ( apistyle == "classic" )
@@ -1947,7 +1949,8 @@ public static bool IsMemberNotPrivateEII(MemberReference m)
19471949 if ( methdef . Overrides . Count == 1 && ! methdef . IsPublic && ! ( methdef . IsFamily && methdef . IsVirtual && ! methdef . DeclaringType . IsSealed ) )
19481950 {
19491951 DocUtils . GetInfoForExplicitlyImplementedMethod ( methdef , out iface , out imethod ) ;
1950- if ( ! DocUtils . IsPublic ( iface . Resolve ( ) ) ) return false ;
1952+ if ( ! DocUtils . IsPublic ( iface . Resolve ( ) ) )
1953+ return false ;
19511954 }
19521955 }
19531956
0 commit comments