CSC is Not Recognize

When We compile C# program using the command-line but the command-line display error message “csc is not recognized as an internal or external command, operable program or batch file”, It is probably because of csc.exe not in your Path.

The simplest way to fix that problem is probably to manually add the directory containing csc.exe to your Path.

C:\Windows\Microsoft.NET\Framework\v4.0.30319
(replace v4.0.30319 with whatever framework you're using)