CSC is not recognized as an internal or external command

If you are trying to compile C# program using cmd and it showing following error:
csc is not recognized as an internal or external command
it means that csc compiler is not available in Path Environment Variable. We can remove this error by following simple steps:

1. Open Window Explorer (WindowKey + E).

2. In the Left pane right click on This PC and select Properties from pop-up menu.

3. Click Advance System Setting in the left pane.

4. Select Environment Variable from System Properties dialog box.

5. Select Path from Environment Variables dialog box and click on Edit button.

6. Click New button and then Browse button in Edit Environment Variable dialog box and the browse the following folder: 
if you are using 64bit system:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319 (version can be changed)
if you are using 32bit system:
C:\Windows\Microsoft.NET\Framework\v4.0.30319 (version can be changed)

7. That's all. Click OK and  Enjoy the programming.


  1. I am getting . This complier doesn't support c sharp after version 5.0 . I am getting something like that . What should I do??.??????!!!!!!!!!!!

    1. enter 'csc help' that will show you the way


Post a Comment