private static void Main(string[] args) { string input; string queryMsg = "Copy [y|n]?: "; PrintHeader(); Console.Write(queryMsg); input = Console.ReadLine(); while (input.Equals("y", StringComparison.CurrentCultureIgnoreCase)) { Console.Clear(); PrintHeader(); foreach (var path in Paths) { // Delete all QnSCopyCode files foreach (var targetPath in path.Value) { foreach (var searchPattern in SearchPatterns) { var targetCodeFiles = Solution.GetSourceCodeFiles(targetPath, searchPattern, TargetLabels); foreach (var targetCodeFile in targetCodeFiles) { File.Delete(targetCodeFile); } } } // Copy all QnSBasCode files foreach (var searchPattern in SearchPatterns) { var sourceLabels = SourceLabels[path.Key]; var sourceCodeFiles = Solution.GetSourceCodeFiles(path.Key, searchPattern, sourceLabels); foreach (var targetPath in path.Value) { foreach (var sourceCodeFile in sourceCodeFiles) { Copier.SynchronizeSourceCodeFile(path.Key, sourceCodeFile, targetPath, sourceLabels, TargetLabels); //Copier.CopySourceCodeFile(path.Key, sourceCodeFile, targetPath, sourceLabels, TargetLabels); } } } } Console.Write(queryMsg); input = Console.ReadLine(); } }