From 3cd3085f49b80701c3fd54894deca24402a14421 Mon Sep 17 00:00:00 2001 From: benchdollar <> Date: Fri, 20 Mar 2026 01:39:04 +0100 Subject: [PATCH] Migrated to .NET 10 --- Quick Link/Quick Link.csproj | 128 +++++------------------------------ Quick Link/QuickInputForm.cs | 24 ++++++- 2 files changed, 41 insertions(+), 111 deletions(-) diff --git a/Quick Link/Quick Link.csproj b/Quick Link/Quick Link.csproj index 45af866..dffd37d 100644 --- a/Quick Link/Quick Link.csproj +++ b/Quick Link/Quick Link.csproj @@ -1,110 +1,28 @@  - - + - Debug - AnyCPU - {EF4B0D54-A24D-4E76-AB9D-40DB857AC8DE} WinExe + net10.0-windows + true QuickLink QuickLink - v4.7.2 - 512 - true - true - publish\ - true - Disk - false - Foreground - 7 - Days - false - false - true - 0 - 1.0.0.%2a - false - false - true - - - x64 - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - - - x64 - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false - - QuickLink.Program - - SpiraPlan-FavIcon.ico + enable + enable + + true + true + + false + + - - - - - - - - - - - - - - - - - Form - - - QuickInputForm.cs - - - - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - True - Resources.resx - True - - - QuickInputForm.cs - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - Settings.settings - True - - - + + @@ -112,17 +30,7 @@ - - - False - Microsoft .NET Framework 4.7.2 %28x86 und x64%29 - true - - - False - .NET Framework 3.5 SP1 - false - - - - \ No newline at end of file + + + + diff --git a/Quick Link/QuickInputForm.cs b/Quick Link/QuickInputForm.cs index bfca62c..ed17534 100644 --- a/Quick Link/QuickInputForm.cs +++ b/Quick Link/QuickInputForm.cs @@ -168,8 +168,30 @@ private void OpenTicket(string validatedTicketString) } string url = CreateSpiraUrl(ticketType, "1011", number); Console.WriteLine("Opening {0}", url); - Process.Start(url); + OpenUrl(url); } + private void OpenUrl(string url) + { + if (!Uri.IsWellFormedUriString(url, UriKind.Absolute)) + { + Console.WriteLine("Invalid URL: " + url); + return; + } + + try + { + var psi = new ProcessStartInfo + { + FileName = url, + UseShellExecute = true + }; + Process.Start(psi); + } + catch (Exception ex) + { + Console.WriteLine("Error opening URL: " + ex.Message); + } + } } }