Also detect localdb 15

This commit is contained in:
Berg
2021-10-18 08:10:29 +02:00
parent 616b57774f
commit 05f5c8def8

View File

@@ -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;