3 rem =====================================================================
\r
4 rem This script uses the command-line C# compiler csc.exe, which is
\r
5 rem provided with the .NET framework. We need framework 3.5 or later
\r
6 rem (some of the code uses features not available in the language version
\r
7 rem implemented in the compiler provided with framework 2.0.50727).
\r
8 rem =====================================================================
\r
10 if exist "%SystemRoot%\Microsoft.NET\Framework\v3.5\csc.exe" (
\r
11 set CSC="%SystemRoot%\Microsoft.NET\Framework\v3.5\csc.exe"
\r
14 if exist "%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\csc.exe" (
\r
15 set CSC="%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\csc.exe"
\r
18 if exist "%SystemRoot%\Microsoft.NET\Framework64\v3.5\csc.exe" (
\r
19 set CSC="%SystemRoot%\Microsoft.NET\Framework64\v3.5\csc.exe"
\r
22 if exist "%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\csc.exe" (
\r
23 set CSC="%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\csc.exe"
\r
27 echo C# compiler not found
\r
31 %CSC% /nologo /out:T0Comp.exe /main:T0Comp /res:T0\kern.t0,t0-kernel T0\*.cs
\r
32 if %errorlevel% neq 0 exit /b %errorlevel%
\r