From 05f5c8def821962e9d0ffdba1ce278464e900f36 Mon Sep 17 00:00:00 2001 From: Berg Date: Mon, 18 Oct 2021 08:10:29 +0200 Subject: [PATCH] Also detect localdb 15 --- src/Umbraco.Infrastructure/Persistence/LocalDb.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Infrastructure/Persistence/LocalDb.cs b/src/Umbraco.Infrastructure/Persistence/LocalDb.cs index 0dbe84b07a..c51344a342 100644 --- a/src/Umbraco.Infrastructure/Persistence/LocalDb.cs +++ b/src/Umbraco.Infrastructure/Persistence/LocalDb.cs @@ -103,8 +103,8 @@ namespace Umbraco.Cms.Infrastructure.Persistence if (string.IsNullOrWhiteSpace(programFiles)) return; - // detect 14, 13, 12, 11 - for (var i = 14; i > 10; i--) + // detect 15, 14, 13, 12, 11 + for (var i = 15; i > 10; i--) { var exe = Path.Combine(programFiles, $@"Microsoft SQL Server\{i}0\Tools\Binn\SqlLocalDB.exe"); if (File.Exists(exe) == false) continue;