11@ if" %_echo% " == " " echo off
2-
32setlocal
4- REM Configure the sample, i.e. where to find the F# compiler and C# compiler.
3+
54if EXIST build.okDEL /f /q build.ok
65
76call %~d0%~p0 ..\..\..\config.bat
87
98" %PEVERIFY% " " %FSCOREDLLPATH% "
109@ if ERRORLEVEL1 goto Error
1110
12- " %PEVERIFY% " %FSCBinPath% \FSharp.Build.dll
11+ " %PEVERIFY% " " %FSCOREDLL20PATH% "
1312@ if ERRORLEVEL1 goto Error
1413
14+ " %PEVERIFY% " " %FSCOREDLLPORTABLEPATH% "
15+ @ if ERRORLEVEL1 goto Error
1516
17+ " %PEVERIFY% " " %FSCBinPath% \FSharp.Build.dll"
18+ @ if ERRORLEVEL1 goto Error
1619
17- if NOT " %FSC:NOTAVAIL =X % " == " %FSC% " (
18-
19- REM Use /MD because this contains some P/Invoke code
20- " %PEVERIFY% " /MD%FSCBinPath% \FSharp.Compiler.dll
21- @ if ERRORLEVEL1 goto Error
22-
23- REM Use /MD because this contains some P/Invoke code
24- " %PEVERIFY% " /MD%FSCBinPath% \FSharp.LanguageService.dll
25- @ if ERRORLEVEL1 goto Error
26-
27- " %PEVERIFY% " %FSCBinPath% \FSharp.ProjectSystem.Base.dll
28- @ if ERRORLEVEL1 goto Error
29-
30- " %PEVERIFY% " %FSCBinPath% \FSharp.ProjectSystem.dll
31- @ if ERRORLEVEL1 goto Error
32-
33-
34- " %PEVERIFY% " %FSCBinPath% \fsi.exe
35- @ if ERRORLEVEL1 goto Error
36-
37- " %PEVERIFY% " %FSCBinPath% \FSharp.Compiler.Server.Shared.dll
38- @ if ERRORLEVEL1 goto Error
39-
40- " %PEVERIFY% " %FSCBinPath% \FSharp.Compiler.Interactive.Settings.dll
41- @ if ERRORLEVEL1 goto Error
42-
43- " %PEVERIFY% " /MD%FSCBinPath% \FSharp.VisualStudio.Session.dll
44- @ if ERRORLEVEL1 goto Error
20+ REM Use /MD because this contains some P/Invoke code
21+ " %PEVERIFY% " /MD" %FSCBinPath% \FSharp.Compiler.dll"
22+ @ if ERRORLEVEL1 goto Error
4523
46- REM Skipping remainder of test for FSI.EXE
47- goto Ok
24+ " %PEVERIFY% " " %FSCBinPath% \fsi.exe "
25+ @ if ERRORLEVEL 1 goto Error
4826
49- )
27+ " %PEVERIFY% " " %FSCBinPath% \FSharp.Compiler.Interactive.Settings.dll"
28+ @ if ERRORLEVEL1 goto Error
5029
5130" %FSC% " %fsc_flags% -o:xmlverify.exe -g xmlverify.fs
5231@ if ERRORLEVEL1 goto Error
@@ -60,18 +39,16 @@ call :SetFSCoreXMLPath "%FSCOREDLLPATH%"
6039%CLIX% xmlverify.exe" %FSHARPCOREXML% "
6140@ if ERRORLEVEL1 goto Error
6241
63-
6442:Ok
6543echo Passed fsharp%~f0 ok.
6644echo > build.ok
6745endlocal
6846exit /b0
6947
70-
7148:Error
7249endlocal
7350exit /b%ERRORLEVEL%
7451
7552:SetFSCoreXMLPath
7653set FSHARPCOREXML = %~dpn1 .xml
77- goto :EOF
54+ goto :EOF