0

when i try to run c# code in VS code it gives 'scriptcs' is not recognized as an internal or external command, operable program or batch file. in the output section and i have already downloaded dot net from microsoft.

Indices
  • 1
  • 1
  • 4
  • You may find your answer at this link: https://stackoverflow.com/questions/59261688/trouble-running-c-sharp-code-in-vs-code-getting-scriptcs-error – Mohammad Jul 14 '22 at 19:10

1 Answers1

0

This error message is usually seen when the scriptcs command is not installed on your system or the path to the scriptcs command is not set in your environment variables. You can try installing scriptcs by following the instructions provided in this link . If you have already installed scriptcs, you can try adding the path to the scriptcs command to your environment variables.

To do this, press the Windows key and type “environment variables” then go to the “Advanced” tab and click “Environment Variables”. Now look at system variables and click on “Path” and then click on "edit". A window will appear named “Edit environment variables”. Press the “New” button and then add your scriptcs path. Then restart VS Code and this should work.