This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private static List<string> GetAllReferences(string fullPath) | |
| { | |
| var logger = new ConsoleLogger(LoggerVerbosity.Quiet); | |
| var manager = BuildManager.DefaultBuildManager; | |
| var projectInstance = new ProjectInstance(fullPath); | |
| var result = manager.Build(new BuildParameters {DetailedSummary = false, Loggers = new List<ILogger> {logger}}, new BuildRequestData(projectInstance, new[] {"ResolveProjectReferences", "ResolveAssemblyReferences"})); | |
| var items1 = PrintResultItems(result, "ResolveProjectReferences"); | |
| var items2 = PrintResultItems(result, "ResolveAssemblyReferences"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Threading; | |
| static class Program { | |
| static void Main() { | |
| Console.Write("Performing some task... "); | |
| using (var progress = new ProgressBar()) { | |
| for (int i = 0; i <= 100; i++) { | |
| progress.Report((double) i / 100); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Collections.ObjectModel; | |
| using System.Collections.Specialized; | |
| using System.ComponentModel; | |
| using System.Diagnostics; | |
| using System.Reflection; | |
| using System.Runtime.Serialization; | |
| using System.Threading; |