AssemblyResolver Class

NDoc Core

NDoc Documentation

AssemblyResolver Class

Resolves assemblies located in a specified directory and its sub-directories.

For a list of all members of this type, see AssemblyResolver Members.

System.Object   AssemblyResolver

public class AssemblyResolver

Remarks

Class AssemblyResolver resolves assemblies not found by the system. An instance of this class is configured with a base directory and hooks up to the AppDomain.AssemblyResolve event. Whenever called, the instance checks the associated directory with all subdirectories for the assembly requested.

The class implements two features to speed up the search:

  • AssemblyList: Before searching the file system, the assembly list is searched. Once an assembly has been found, it is added to the AssemblyList.
  • SubDirectoryCache: The class caches the subdirectories of each directory once they have been determined. This avoids repeated filesystem queries for subdirectories.

Requirements

Namespace: NDoc.Core

Assembly: NDoc.Core (in NDoc.Core.dll)

See Also

AssemblyResolver Members | NDoc.Core Namespace