Delen via


IAnalyzerAssemblyLoader Interface

Definition

Handles loading analyzer assemblies and their dependencies.

Before an analyzer assembly is loaded with LoadFromPath(String), its location and the location of all of its dependencies must first be specified by calls to AddDependencyLocation(String).

public interface class IAnalyzerAssemblyLoader
public interface IAnalyzerAssemblyLoader
type IAnalyzerAssemblyLoader = interface
Public Interface IAnalyzerAssemblyLoader

Remarks

To the extent possible, implementations should remain consistent in the face of exceptions and allow the caller to handle them. This allows the caller to decide how to surface issues to the user and whether or not they are fatal. For example, if asked to load an a non-existent or inaccessible file a command line tool may wish to exit immediately, while an IDE may wish to keep going and give the user a chance to correct the issue.

Methods

AddDependencyLocation(String)

Adds a file to consider when loading an analyzer or its dependencies.

LoadFromPath(String)

Given the full path to an assembly on disk, loads and returns the corresponding Assembly object.

Applies to