The best way to find CSC.exe path is running in CLI (Command Line Interpreter) that simple line:
dir /s %WINDIR%\CSC.EXE
dir – shows directory
/s – includes subfolders
%WINDIR%\CSC.EXE – looks in root folder for phrase like “CSC.exe”.
Then we can simply compile example code by line like: