Skip to content

Commit 611689a

Browse files
authored
Support VS 2017/19
1 parent 7876a63 commit 611689a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

build.cmd

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ if not "%BuildBranch%"=="" (
1212
)
1313

1414
if "%VisualStudioVersion%"=="" (
15-
set VisualStudioVersion=15.0
15+
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\" (
16+
set VisualStudioVersion=15.0
17+
)
18+
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\" (
19+
set VisualStudioVersion=16.0
20+
)
1621
)
1722

1823
:: Allow running `build SomeTask` instead of `build -t SomeTask`
@@ -23,4 +28,4 @@ if "%_Add-t%"=="1" (
2328
.paket\fake.exe run build.fsx -t %*
2429
) else (
2530
.paket\fake.exe run build.fsx %*
26-
)
31+
)

0 commit comments

Comments
 (0)