Merge pull request #11394 from umbraco/v9/bugfix/support_localdb_15
Also detect localdb 15
This commit is contained in:
@@ -103,8 +103,8 @@ namespace Umbraco.Cms.Infrastructure.Persistence
|
|||||||
|
|
||||||
if (string.IsNullOrWhiteSpace(programFiles)) return;
|
if (string.IsNullOrWhiteSpace(programFiles)) return;
|
||||||
|
|
||||||
// detect 14, 13, 12, 11
|
// detect 15, 14, 13, 12, 11
|
||||||
for (var i = 14; i > 10; i--)
|
for (var i = 15; i > 10; i--)
|
||||||
{
|
{
|
||||||
var exe = Path.Combine(programFiles, $@"Microsoft SQL Server\{i}0\Tools\Binn\SqlLocalDB.exe");
|
var exe = Path.Combine(programFiles, $@"Microsoft SQL Server\{i}0\Tools\Binn\SqlLocalDB.exe");
|
||||||
if (File.Exists(exe) == false) continue;
|
if (File.Exists(exe) == false) continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user