From 5f85163a22931633b31cd2a7a6c1f9af55a40ae5 Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Tue, 20 Dec 2022 10:39:21 +0300 Subject: [PATCH] Cli: Update default connections string for SqlServer --- .../Volo/Abp/Cli/Commands/ProjectCreationCommandBase.cs | 2 ++ .../Volo/Abp/Cli/Commands/Services/ConnectionStringProvider.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ProjectCreationCommandBase.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ProjectCreationCommandBase.cs index 2c6cdc466d..f660e5ee53 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ProjectCreationCommandBase.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ProjectCreationCommandBase.cs @@ -84,6 +84,7 @@ public abstract class ProjectCreationCommandBase { Logger.LogInformation("Preview: yes"); +#if !DEBUG var cliVersion = await CliService.GetCurrentCliVersionAsync(typeof(CliService).Assembly); if (!cliVersion.IsPrerelease) @@ -92,6 +93,7 @@ public abstract class ProjectCreationCommandBase "You can only create a new preview solution with preview CLI version." + " Update your ABP CLI to the preview version."); } +#endif } var pwa = commandLineArgs.Options.ContainsKey(Options.ProgressiveWebApp.Short); diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/Services/ConnectionStringProvider.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/Services/ConnectionStringProvider.cs index 1a4d5bfc98..f667ad0754 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/Services/ConnectionStringProvider.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/Services/ConnectionStringProvider.cs @@ -13,7 +13,7 @@ public class ConnectionStringProvider : ITransientDependency { case DatabaseManagementSystem.NotSpecified: case DatabaseManagementSystem.SQLServer: - return "Server=localhost;Database=MyProjectName;Trusted_Connection=True"; + return "Server=localhost;Database=MyProjectName;Trusted_Connection=True;TrustServerCertificate=True"; case DatabaseManagementSystem.MySQL: return "Server=localhost;Port=3306;Database=MyProjectName;Uid=root;Pwd=myPassword;"; case DatabaseManagementSystem.PostgreSQL: