From 3932332694ce6c4b30f664d4c80e468cdb95802a Mon Sep 17 00:00:00 2001 From: Kim Santiago <31145923+kisantia@users.noreply.github.com> Date: Mon, 21 Nov 2022 11:53:12 -0800 Subject: [PATCH] update sql projects strings to install .net 6 SDK instead of .net core 3.1 (#21235) * update sql projects strings to install .net 6 SDK instead of .net core 3.1 * update to us aka.ms link --- extensions/sql-database-projects/package.nls.json | 2 +- extensions/sql-database-projects/src/common/constants.ts | 4 ++-- extensions/sql-database-projects/src/tools/netcoreTool.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/extensions/sql-database-projects/package.nls.json b/extensions/sql-database-projects/package.nls.json index 5677da84d5..2cbb49e9ba 100644 --- a/extensions/sql-database-projects/package.nls.json +++ b/extensions/sql-database-projects/package.nls.json @@ -37,7 +37,7 @@ "sqlDatabaseProjects.Settings": "Database Projects", "sqlDatabaseProjects.dotnetInstallLocation": "Full path to .NET SDK on the machine. For example, if dotnet.exe is located at C:\\folder1\\dotnet\\dotnet.exe, set the path for this setting to C:\\folder1\\dotnet", - "sqlDatabaseProjects.netCoreDoNotAsk": "Whether to prompt the user to install .NET Core when not detected.", + "sqlDatabaseProjects.netCoreDoNotAsk": "Whether to prompt the user to install .NET SDK when not detected.", "sqlDatabaseProjects.nodejsDoNotAsk": "Whether to prompt the user to install Node.js when not detected.", "sqlDatabaseProjects.autorestSqlVersion": "Which version of Autorest.Sql to use from NPM. Latest will be used if not set.", "sqlDatabaseProjects.collapseProjectNodes": "Whether project nodes start collapsed", diff --git a/extensions/sql-database-projects/src/common/constants.ts b/extensions/sql-database-projects/src/common/constants.ts index 9e14f358f2..7b565a687b 100644 --- a/extensions/sql-database-projects/src/common/constants.ts +++ b/extensions/sql-database-projects/src/common/constants.ts @@ -410,8 +410,8 @@ export const postDeployScriptFriendlyName = localize('postDeployScriptFriendlyNa // Build -export const DotnetInstallationConfirmation: string = localize('sqlDatabaseProjects.DotnetInstallationConfirmation', "The .NET SDK cannot be located. Project build will not work. Please install .NET Core SDK version 3.1 or higher or update the .NET SDK location in settings if already installed."); -export function NetCoreSupportedVersionInstallationConfirmation(installedVersion: string) { return localize('sqlDatabaseProjects.NetCoreSupportedVersionInstallationConfirmation', "Currently installed .NET Core SDK version is {0}, which is not supported. Project build will not work. Please install .NET Core SDK version 3.1 or higher or update the .NET SDK supported version location in settings if already installed.", installedVersion); } +export const DotnetInstallationConfirmation: string = localize('sqlDatabaseProjects.DotnetInstallationConfirmation', "The .NET SDK cannot be located. Project build will not work. Please install .NET 6 SDK or higher or update the .NET SDK location in settings if already installed."); +export function NetCoreSupportedVersionInstallationConfirmation(installedVersion: string) { return localize('sqlDatabaseProjects.NetCoreSupportedVersionInstallationConfirmation', "Currently installed .NET SDK version is {0}, which is not supported. Project build will not work. Please install .NET 6 SDK or higher or update the .NET SDK supported version location in settings if already installed.", installedVersion); } export const UpdateDotnetLocation: string = localize('sqlDatabaseProjects.UpdateDotnetLocation', "Update Location"); export const projectsOutputChannel = localize('sqlDatabaseProjects.outputChannel', "Database Projects"); diff --git a/extensions/sql-database-projects/src/tools/netcoreTool.ts b/extensions/sql-database-projects/src/tools/netcoreTool.ts index cce0eb293a..2119b1977a 100644 --- a/extensions/sql-database-projects/src/tools/netcoreTool.ts +++ b/extensions/sql-database-projects/src/tools/netcoreTool.ts @@ -78,8 +78,8 @@ export class NetCoreTool extends ShellExecutionHelper { await vscode.commands.executeCommand('workbench.action.openGlobalSettings'); } else if (result === Install) { //open install link - const dotnetcoreURL = 'https://dotnet.microsoft.com/download/dotnet-core/3.1'; - await vscode.env.openExternal(vscode.Uri.parse(dotnetcoreURL)); + const dotnetSdkUrl = 'https://aka.ms/sqlprojects-dotnet'; + await vscode.env.openExternal(vscode.Uri.parse(dotnetSdkUrl)); } else if (result === DoNotAskAgain) { const config = vscode.workspace.getConfiguration(DBProjectConfigurationKey); await config.update(NetCoreDoNotAskAgainKey, true, vscode.ConfigurationTarget.Global);