Open bruce965 opened 6 years ago
Asynchronous methods do not throw exceptions, you should await for a result instead.
private void MainForm_Load(object sender, EventArgs e) { // ... try { webClient.DownloadFileAsync(new Uri("https://github.com/PeterTh/gedosato/archive/master.zip"), "update.zip"); } catch (Exception ex) { // .. } }
Should be changed to:
private async Task MainForm_Load(object sender, EventArgs e) { // ... try { await webClient.DownloadFileAsync(new Uri("https://github.com/PeterTh/gedosato/archive/master.zip"), "update.zip"); } catch (Exception ex) { // .. } }
Asynchronous methods do not throw exceptions, you should await for a result instead.
Should be changed to: