3
3
set APPVEYOR_CI = 1
4
4
5
5
:: Check prerequisites
6
- set _msbuildexe = " %ProgramFiles(x86)% \MSBuild\12.0\Bin\MSBuild.exe"
7
- if not exist %_msbuildexe% set _msbuildexe = " %ProgramFiles% \MSBuild\12.0\Bin\MSBuild.exe"
8
- if not exist %_msbuildexe% set _msbuildexe = " %ProgramFiles(x86)% \MSBuild\14.0\Bin\MSBuild.exe"
9
- if not exist %_msbuildexe% set _msbuildexe = " %ProgramFiles% \MSBuild\14.0\Bin\MSBuild.exe"
6
+ if not '%VisualStudioVersion% ' == '' goto vsversionset
7
+ if exist " %ProgramFiles(x86)% \Microsoft Visual Studio 14.0\common7\ide\devenv.exe" set VisualStudioVersion = 14.0
8
+ if not '%VisualStudioVersion% ' == '' goto vsversionset
9
+ if exist " %ProgramFiles(x86)% \Microsoft Visual Studio 12.0\common7\ide\devenv.exe" set VisualStudioVersion = 12.0
10
+ :vsversionset
11
+ if '%VisualStudioVersion% ' == '' echo Error: Could not find a Visual Studio Installed.MSBuild.exe. Please see http://www.visualstudio.com/en-us/news/vs2015-vs.aspx. && goto :eof
12
+
13
+ if '%VisualStudioVersion% '== '14.0' set _msbuildexe = " %ProgramFiles(x86)% \MSBuild\14.0\Bin\MSBuild.exe"
14
+ if '%VisualStudioVersion% '== '12.0' set _msbuildexe = " %ProgramFiles(x86)% \MSBuild\12.0\Bin\MSBuild.exe"
10
15
if not exist %_msbuildexe% echo Error: Could not find MSBuild.exe. Please see http://www.microsoft.com/en-us/download/details.aspx?id=40760. && goto :eof
11
16
12
17
set _ngenexe = " %SystemRoot% \Microsoft.NET\Framework\v4.0.30319\ngen.exe"
@@ -19,14 +24,16 @@ if not exist %_ngenexe% echo Error: Could not find ngen.exe. && goto :eof
19
24
%_msbuildexe% src\fsharp-proto-build.proj
20
25
@ if ERRORLEVEL 1 echo Error: compiler proto build failed && goto :eof
21
26
22
- %_ngenexe% install Proto\net40\bin\fsc-proto.exe
23
- @ if ERRORLEVEL 1 echo Error: NGen of proto failed && goto :eof
27
+ %_ngenexe% install proto\net40\bin\FSharp.Compiler-proto.dll
28
+ %_ngenexe% install proto\net40\bin\fsharp.core.dll
29
+ %_ngenexe% install proto\net40\bin\FSharp.Build-proto.dll
30
+ %_ngenexe% install proto\net40\bin\fsc-proto.exe
24
31
25
- %_msbuildexe% src/fsharp-library-build.proj /p:Configuration=Release
26
- @ if ERRORLEVEL 1 echo Error: library build failed && goto :eof
32
+ %_msbuildexe% src/fsharp-library-build.proj /p:UseNugetPackages=true /p: Configuration=Release
33
+ @ if ERRORLEVEL 1 echo Error: library release build failed && goto :eof
27
34
28
- %_msbuildexe% src/fsharp-compiler-build.proj /p:Configuration=Release
29
- @ if ERRORLEVEL 1 echo Error: compiler build failed && goto :eof
35
+ %_msbuildexe% src/fsharp-compiler-build.proj /p:UseNugetPackages=true /p: Configuration=Release
36
+ @ if ERRORLEVEL 1 echo Error: compile Release build failed && goto :eof
30
37
31
38
REM We don't build new net20 FSharp.Core anymore
32
39
REM %_msbuildexe% src/fsharp-library-build.proj /p:TargetFramework=net20 /p:Configuration=Release
@@ -43,11 +50,8 @@ REM @if ERRORLEVEL 1 echo Error: library net20 build failed && goto :eof
43
50
44
51
%_msbuildexe% src/fsharp-library-build.proj /p:TargetFramework=portable259 /p:Configuration=Release
45
52
@ if ERRORLEVEL 1 echo Error: library portable259 build failed && goto :eof
46
-
47
-
48
53
%_msbuildexe% src/fsharp-compiler-unittests-build.proj
49
- @ if ERRORLEVEL 1 echo Error: compiler unittests debug build failed && goto :eof
50
-
54
+ @ if ERRORLEVEL 1 echo Error: compiler unittests Release build failed && goto :eof
51
55
52
56
%_msbuildexe% src/fsharp-library-unittests-build.proj /p:Configuration=Release
53
57
@ if ERRORLEVEL 1 echo Error: library unittests build failed && goto :eof
@@ -64,7 +68,6 @@ REM @if ERRORLEVEL 1 echo Error: library net20 build failed && goto :eof
64
68
%_msbuildexe% src/fsharp-library-unittests-build.proj /p:TargetFramework=portable259 /p:Configuration=Release
65
69
@ if ERRORLEVEL 1 echo Error: library unittests build failed portable259 && goto :eof
66
70
67
-
68
71
@ echo on
69
72
call src\update.cmd release -ngen
70
73
@@ -78,15 +81,14 @@ pushd tests
78
81
79
82
REM Disabled while working out perl problem, see https://github.com/Microsoft/visualfsharp/pull/169
80
83
REM call RunTests.cmd release fsharp Smoke
81
- REM @if ERRORLEVEL 1 echo Error: 'RunTests.cmd release fsharpqa Smoke' failed && goto :eof
84
+ REM @if ERRORLEVEL 1 echo Error: 'RunTests.cmd Release fsharpqa Smoke' failed && goto :eof
82
85
83
86
REM Disabled while working out perl problem, see https://github.com/Microsoft/visualfsharp/pull/169
84
87
REM call RunTests.cmd release fsharpqa Smoke
85
88
REM @if ERRORLEVEL 1 echo Error: 'RunTests.cmd release fsharpqa Smoke' failed && goto :eof
86
89
87
90
call RunTests.cmd release compilerunit
88
91
@ if ERRORLEVEL 1 echo Error: 'RunTests.cmd release compilerunit' failed && goto :eof
89
-
90
92
call RunTests.cmd release coreunit
91
93
@ if ERRORLEVEL 1 echo Error: 'RunTests.cmd release coreunit' failed && goto :eof
92
94
0 commit comments