From b3ea407cef733663363bcbfdcdba8a4dc62566b9 Mon Sep 17 00:00:00 2001 From: Fabian Hohmuth Date: Thu, 9 May 2024 00:49:26 -0700 Subject: [PATCH] Fixed an issue with Process.Start() in NETCOREAPP (#677) --- AutoUpdater.NET/UpdateForm.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/AutoUpdater.NET/UpdateForm.cs b/AutoUpdater.NET/UpdateForm.cs index 345b9a7..cc33d13 100644 --- a/AutoUpdater.NET/UpdateForm.cs +++ b/AutoUpdater.NET/UpdateForm.cs @@ -177,8 +177,13 @@ private void ButtonUpdateClick(object sender, EventArgs e) { if (AutoUpdater.OpenDownloadPage) { + var processStartInfo = new ProcessStartInfo(_args.DownloadURL); - +#if NETCOREAPP + // for .NET Core, UseShellExecute must be set to true, otherwise + // opening URLs via Process.Start() fails + processStartInfo.UseShellExecute = true; +#endif Process.Start(processStartInfo); DialogResult = DialogResult.OK;