public override IEnumerable <string> Results(bool verbose) { var result = new List <string>(); if (verbose) { result.Add($"Opened {FileType} File: {ProjectPath}"); result.Add($"TargetFrameworkVersion {TargetFrameworkVersion}"); result.Add($"Output {Assemblies.Count} Assemblies"); result.AddRange(Assemblies.Select(assembly => '\t' + assembly.ToString())); result.Add($"Referenced {References.Count} Assemblies"); result.AddRange(References.Select(assembly => '\t' + assembly.ToString())); result.Add($"Source Files {SourceFiles.Count}"); result.AddRange(SourceFiles.Select(resource => '\t' + resource.ToString())); result.Add($"Dependancies {Dependencies.Count}"); result.AddRange(Dependencies.Select(dependancy => '\t' + dependancy)); result.Add($"Missing Files: {MissingFiles.Count}"); result.AddRange(MissingFiles.Select(missing => '\t' + missing.Path)); } else if (MissingFiles.Count > 0) { result.Add($"Opened {Path.GetFileName(ProjectPath)} Missing: {MissingFiles.Count}/{SourceFiles.Count} References: {References.Count}"); } return(result); }
public override IEnumerable <string> Results(bool verbose) { var result = new List <string>() { $"Opened {FileType} File: {ProjectFilename}" }; if (verbose) { result.Add($"Source Files {SourceFiles.Count}"); result.AddRange(SourceFiles.Select(resource => '\t' + resource.ToString())); result.Add($"Dependancies {Dependencies.Count}"); result.AddRange(Dependencies.Select(dependancy => '\t' + dependancy)); result.Add($"Missing Files: {MissingFiles.Count}"); result.AddRange(MissingFiles.Select(missing => '\t' + missing.Path)); } else { result.Add($"Files: {SourceFiles.Count} Missing: {MissingFiles.Count}"); } return(result); }