NDepend.API Documentation
WasChanged(IAbsoluteFilePath) Method
NDepend.CodeModel Namespace > ICompareContext Interface > WasChanged Method : WasChanged(IAbsoluteFilePath) Method
The absolute source file path.
Returns true if the sourceFilePath content is different between the older and the newer build.
Syntax

Parameters

sourceFilePath
The absolute source file path.
Remarks
sourceFilePath can be obtained from ICodeElement.ICodeElement.SourceDecls , ISourceDecl.ISourceDecl.SourceFile.ISourceFile.FilePath.
If only some formatting have been changed within the source file without touching any code behavior, the source file is seen as changed while no code element declared within the source file is seen as changed.
This method works even when the path is rebased, thanks to an heuristic.
Requirements

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

See Also

Reference

ICompareContext Interface
ICompareContext Members
Overload List
CodeWasChanged Method
WasChanged(ICodeElement) Method
WasChanged(IAbsoluteDirectoryPath) Method
WasAdded(IAbsoluteFilePath) Method
WasRemoved(IAbsoluteFilePath) Method