public void AddToolsSolutionDirectoryToAddinSearch() { var solutionDirToolsDirectory = Path.Combine(solutionDirectory, "Tools"); if (!Directory.Exists(solutionDirToolsDirectory)) { log($" Skipped scanning '{solutionDirToolsDirectory}' since it doesn't exist."); return; } log($" Scanning SolutionDir/Tools directory convention: '{solutionDirToolsDirectory}'."); AddFiles(DirectoryEx.EnumerateFilesEndsWith(solutionDirToolsDirectory, ".Fody.dll", SearchOption.AllDirectories)); }
IEnumerable <string> EnumerateToolsSolutionDirectoryWeavers() { var solutionDirToolsDirectory = Path.Combine(solutionDirectory, "Tools"); if (!Directory.Exists(solutionDirToolsDirectory)) { log($" Skipped scanning '{solutionDirToolsDirectory}' since it doesn't exist."); return(Enumerable.Empty <string>()); } log($" Scanning SolutionDir/Tools directory convention: '{solutionDirToolsDirectory}'."); return(DirectoryEx.EnumerateFilesEndsWith(solutionDirToolsDirectory, WeaverDllSuffix, SearchOption.AllDirectories)); }