Method LogVersionInfo
LogVersionInfo(string, string, bool)
Logs version information for all files matching the specified name in the given directory.
public static void LogVersionInfo(string baseFolder, string fileNameWithoutPath, bool recursive)
Parameters
baseFolderstringThe path to the directory in which to search for files. Cannot be null or empty.
fileNameWithoutPathstringThe name of the file to search for, without any directory path. Cannot be null or empty.
recursivebooltrue to search all subdirectories of the base folder; otherwise, false to search only the top-level directory.
Exceptions
- ArgumentNullException
Thrown if baseFolder or fileNameWithoutPath is null or empty.
LogVersionInfo(string)
Logs version information for the specified file to the application's logging system.
public static void LogVersionInfo(string filePath)
Parameters
filePathstringThe path to the file for which version information will be retrieved and logged. Cannot be null or empty.