static void Main(string[] args) { if (args.Length == 0) { Console.WriteLine("Provide a path to your solution"); return; } var settings = PlainTextReader.From(args[0] + "\\VersionedFiles.txt").DelimitBy(ColumnDelimiter.Pipe).GetAListOf <VersionedFile>(); var versioner = new Versioner(new FileResolver(), new FilePropertyEditor(settings)); versioner.ApplyTo(args[0]); }
public IEnumerable <Release> Resolve(string path) { string[] allFiles; List <Release> releases; try { allFiles = Directory.GetFiles(path, "ReleaseTrack.txt"); if (!allFiles.Any()) { return(null); } releases = PlainTextReader.From(allFiles.First()).DelimitBy(ColumnDelimiter.Pipe).GetAListOf <Release>(); } catch (Exception) { return(null); } return(releases); }