Click or drag to resize

AnalyzerFileReference Class



Represents analyzers stored in an analyzer assembly file.
Inheritance Hierarchy
SystemObject
  Microsoft.CodeAnalysis.DiagnosticsAnalyzerReference
    Microsoft.CodeAnalysis.DiagnosticsAnalyzerFileReference

Namespace:  Microsoft.CodeAnalysis.Diagnostics
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public sealed class AnalyzerFileReference : AnalyzerReference, 
	IEquatable

The AnalyzerFileReference type exposes the following members.

Constructors
  NameDescription
Public methodAnalyzerFileReference
Creates an AnalyzerFileReference with the given fullPath and assemblyLoader.
Top
Properties
Methods
Events
  NameDescription
Public eventAnalyzerLoadFailed
Top
Remarks
Analyzer are read from the file, owned by the reference, and doesn't change since the reference is accessed until the reference object is garbage collected. If you need to manage the lifetime of the analyzer reference (and the file stream) explicitly use AnalyzerImageReference.
See Also