private static async Task Main(string[] args) { // The sole purpose of this program is to consistently generate the database using .NET Core 2.2. using (var httpClient = new HttpClient()) { await UnicodeDatabaseGenerator.GenerateDatabase(httpClient, args[0], args[1], null, null, null); } }
protected override async Task <bool> ExecuteAsync(CancellationToken cancellationToken) { using (var httpClient = new HttpClient()) { string baseDirectory = IntermediateDirectory; baseDirectory = string.IsNullOrWhiteSpace(baseDirectory) ? Environment.CurrentDirectory : Path.GetFullPath(baseDirectory); await UnicodeDatabaseGenerator.GenerateDatabase(httpClient, baseDirectory, DatabasePath, ShouldDownloadFiles, ShouldSaveFiles, ShouldExtractFiles); return(true); } }