@@ -12,6 +12,9 @@ if not exist %_msbuildexe% echo Error: Could not find MSBuild.exe. Please see h
1212set _gacutilexe = " %ProgramFiles(x86)% \Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\gacutil.exe"
1313if not exist %_gacutilexe% echo Error: Could not find gacutil.exe.&& goto :eof
1414
15+ set _ngenexe = " %SystemRoot% \Microsoft.NET\Framework\v4.0.30319\ngen.exe"
16+ if not exist %_ngenexe% echo Error: Could not find ngen.exe.&& goto :eof
17+
1518.\.nuget\NuGet.exe restore packages.config -PackagesDirectory packages
1619@ if ERRORLEVEL1 echo Error: Nuget restore failed&& goto :eof
1720
@@ -22,7 +25,7 @@ if not exist %_gacutilexe% echo Error: Could not find gacutil.exe. && goto :eof
2225%_msbuildexe% src\fsharp-proto-build.proj
2326@ if ERRORLEVEL1 echo Error: compiler proto build failed&& goto :eof
2427
25- ngen install lib\proto\fsc-proto.exe
28+ %_ngenexe% install lib\proto\fsc-proto.exe
2629
2730%_msbuildexe% src/fsharp-library-build.proj /p:UseNugetPackages=true
2831@ if ERRORLEVEL1 echo Error: library debug build failed&& goto :eof