Skip to content

Commit b3ea407

Browse files
authored
Fixed an issue with Process.Start() in NETCOREAPP (#677)
1 parent c5b8cfb commit b3ea407

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

AutoUpdater.NET/UpdateForm.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,13 @@ private void ButtonUpdateClick(object sender, EventArgs e)
177177
{
178178
if (AutoUpdater.OpenDownloadPage)
179179
{
180+
180181
var processStartInfo = new ProcessStartInfo(_args.DownloadURL);
181-
182+
#if NETCOREAPP
183+
// for .NET Core, UseShellExecute must be set to true, otherwise
184+
// opening URLs via Process.Start() fails
185+
processStartInfo.UseShellExecute = true;
186+
#endif
182187
Process.Start(processStartInfo);
183188

184189
DialogResult = DialogResult.OK;

0 commit comments

Comments
 (0)