NDepend.API Documentation
BuildAnalysisResultRefFor Method
NDepend.Analysis Namespace > ExtensionMethodsProjectAnalysis Class : BuildAnalysisResultRefFor Method
The project.
The analysis result file path (.ndar extension).
Create an IAnalysisResultRef object from a project, an analysis result file (.ndar extension) and a date.
Syntax
[Extension()]
public static IAnalysisResultRef BuildAnalysisResultRefFor( 
   IProject project,
   IAbsoluteFilePath analysisResultFilePath
)

Parameters

project
The project.
analysisResultFilePath
The analysis result file path (.ndar extension).

Return Value

The analysis result reference.
Exceptions
ExceptionDescription
This exception is thrown if the analysis result file analysisResultFilePath doesn't exist.
Remarks
The analysis result is not loaded, only the reference to the analysis result is returned.
The IAnalysisResultRef.IAnalysisResultRef.Date is inferred from the directy path if the analysis result parent directory path. NDepend stores historic analysis result in a folder hierarchy named after YYYY_MM and then sub folder DD_HH_MM_SS.
If the analysis result file is not stored in such folder, IAnalysisResultRef.IAnalysisResultRef.Date is the last write date of the analysis result file.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsProjectAnalysis Class
ExtensionMethodsProjectAnalysis Members