From c0404f044a64fc80680dc51c5924480d73342661 Mon Sep 17 00:00:00 2001 From: Mark Carrington <31017244+MarkMpn@users.noreply.github.com> Date: Fri, 24 Nov 2023 08:43:18 +0000 Subject: [PATCH] Give direct link to new download file --- AzureDataStudioExtension/CHANGELOG.md | 2 +- .../Reflection/DisplaySQLResultsControlWrapper.cs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/AzureDataStudioExtension/CHANGELOG.md b/AzureDataStudioExtension/CHANGELOG.md index 6a1e3422..23fed47d 100644 --- a/AzureDataStudioExtension/CHANGELOG.md +++ b/AzureDataStudioExtension/CHANGELOG.md @@ -1,6 +1,6 @@ # Change Log -## [v8.0.0](https://github.com/MarkMpn/Sql4Cds/releases/tag/v8.0.0) - 2023-11-18 +## [v8.0.0](https://github.com/MarkMpn/Sql4Cds/releases/tag/v8.0.0) - 2023-11-25 Added Common Table Expression support: - Non-recursive CTEs are expanded to subqueries for compatibility with TDS Endpoint diff --git a/MarkMpn.Sql4Cds.SSMS/Reflection/DisplaySQLResultsControlWrapper.cs b/MarkMpn.Sql4Cds.SSMS/Reflection/DisplaySQLResultsControlWrapper.cs index 2d2ba086..c3484ddb 100644 --- a/MarkMpn.Sql4Cds.SSMS/Reflection/DisplaySQLResultsControlWrapper.cs +++ b/MarkMpn.Sql4Cds.SSMS/Reflection/DisplaySQLResultsControlWrapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Linq; using System.Reflection; using System.Text; @@ -62,8 +63,9 @@ public void StartExecution() if (VersionChecker.Result.IsCompleted && !VersionChecker.Result.IsFaulted && VersionChecker.Result.Result > currentVersion) { + var ssmsVersion = Process.GetCurrentProcess().MainModule.FileVersionInfo.ProductMajorPart; AddStringToErrors(" An updated version of SQL 4 CDS is available", true); - AddStringToMessages($" Update to v{VersionChecker.Result.Result.ToString(3)} available from https://markcarrington.dev/sql-4-cds/"); + AddStringToMessages($" Update to v{VersionChecker.Result.Result.ToString(3)} available from https://github.com/MarkMpn/Sql4Cds/releases/download/v{VersionChecker.Result.Result.ToString(3)}/MarkMpn.Sql4Cds.SSMS.{ssmsVersion}.Setup.msi"); AddStringToMessages(""); } }