|
1 | 1 | @echooff |
2 | 2 |
|
3 | 3 | :: Check prerequisites |
4 | | -set_msbuildexe="%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" |
5 | | -ifnotexist%_msbuildexe%set_msbuildexe="%ProgramFiles%\MSBuild\14.0\Bin\MSBuild.exe" |
6 | | -ifnotexist%_msbuildexe%set_msbuildexe="%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe" |
7 | | -ifnotexist%_msbuildexe%set_msbuildexe="%ProgramFiles%\MSBuild\12.0\Bin\MSBuild.exe" |
8 | | -ifnotexist%_msbuildexe%echo Error: Could not find MSBuild.exe. Please see http://www.microsoft.com/en-us/download/details.aspx?id=40760.&&goto :eof |
| 4 | +ifexist"%VS150COMNTOOLS%\..\..\MSBuild\15.0\Bin\MSBuild.exe" ( |
| 5 | +set_msbuildexe="%VS150COMNTOOLS%\..\..\MSBuild\15.0\Bin\MSBuild.exe" |
| 6 | +goto :havemsbuild |
| 7 | +) |
| 8 | +ifexist"%ProgramFiles(x86)%\MSBuild\%VisualStudioVersion%\Bin\MSBuild.exe" ( |
| 9 | +set_msbuildexe="%ProgramFiles(x86)%\MSBuild\%VisualStudioVersion%\Bin\MSBuild.exe" |
| 10 | +goto :havemsbuild |
| 11 | +) |
| 12 | +ifexist"%ProgramFiles%\MSBuild\%VisualStudioVersion%\Bin\MSBuild.exe" ( |
| 13 | +set_msbuildexe="%ProgramFiles%\MSBuild\%VisualStudioVersion%\Bin\MSBuild.exe" |
| 14 | +goto :havemsbuild |
| 15 | +) |
| 16 | +echo Error: Could not find MSBuild.exe.&&goto :failure |
| 17 | +goto :eof |
| 18 | + |
| 19 | +:havemsbuild |
9 | 20 |
|
| 21 | +echo"_msbuildexe=%_msbuildexe%" |
10 | 22 | setmsbuildflags=/maxcpucount |
11 | 23 | set_ngenexe="%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\ngen.exe" |
12 | 24 | ifnotexist%_ngenexe%echo Note: Could not find ngen.exe. |
@@ -42,7 +54,7 @@ if /i "%PROCESSOR_ARCHITECTURE%"=="AMD64" ( |
42 | 54 |
|
43 | 55 | %_ngenexe% install .\.nuget\NuGet.exe |
44 | 56 |
|
45 | | -.\.nuget\NuGet.exe restore packages.config -PackagesDirectory packages -ConfigFile.nuget\nuget.config |
| 57 | +.\.nuget\NuGet.exe restore packages.config -PackagesDirectory packages -ConfigFileNuGet.Config |
46 | 58 | @if ERRORLEVEL1echo Error: Nuget restore failed&&goto :failure |
47 | 59 |
|
48 | 60 | %_ngenexe% install packages\FSharp.Compiler.Tools.4.1.27\tools\fsc.exe |
|