diff --git a/src/app/Fake.Sql.DacPac/Sql.DacPac.fs b/src/app/Fake.Sql.DacPac/Sql.DacPac.fs index 64379b936ff..e0539552048 100644 --- a/src/app/Fake.Sql.DacPac/Sql.DacPac.fs +++ b/src/app/Fake.Sql.DacPac/Sql.DacPac.fs @@ -47,8 +47,9 @@ module DacPac = let getVsVersion path = (Path.GetDirectoryName path |> DirectoryInfo).Name |> int let sql = !!(Environment.ProgramFilesX86 @"Microsoft SQL Server\**\DAC\bin\SqlPackage.exe") |> Seq.map(fun path -> path, getSqlVersion path) let vs = !!(Environment.ProgramFilesX86 @"Microsoft Visual Studio*\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\*\SqlPackage.exe") |> Seq.map(fun path -> path, getVsVersion path) + let vs2017 = !!(Environment.ProgramFilesX86 @"Microsoft Visual Studio\**\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\*\SqlPackage.exe") |> Seq.map(fun path -> path, getVsVersion path) - [ sql; vs ] + [ sql; vs; vs2017 ] |> List.collect Seq.toList |> List.sortByDescending snd |> List.map fst