Self-Compile

mail@pastecode.io avatar
unknown
batchfile
2 months ago
444 B
4
Indexable
Never
// 2>nul||@goto :batch

/*

:batch

setlocal

::find csc.exe set "esc="

for /r "SystemRoot\Microsoft.NET\Framework\" %%# in ("*esc.exe") do set "csc=884"

if not exist "esc!" (
echo no .net framework installed exit /b 10

if not exist "&~nO.exe" (
call Scsc% /nologo /warn: 0 /out: "g~nO.exe" "g~dpsfnxo" || 
( exit /b 'errorlevel% )

§~nO. exe &*

endlocal & exit /b Serrorlevel%

/*

#region C# Code Goes Here

//code to compile

#endregion