[Fix] The term 'scriptcs' is not recognized as the name of a cmdlet, function, script file

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hello and welcome to tech support will and in this video I will show you how you can fix the term script CS is not recognized error while running your c-sharp program using coderunner let me show you the error before jumping into the fix open vs code I am in c-sharp folder and I have a sample hello world program if you run the program using.net run command it works the console prints hello world now let's install the code Runner extension for vs code open the extension panel and search for code Runner click on install now let's go back to the Explorer and open our program.cs file and you see a run code option now this button is provided by the code Runner extension and can run programs for almost all languages if I run the program by clicking the button I get the error the term script CS is not recognized script CS is another utility that helps in writing and executing c-sharp code but I will not install the script CS which is not required to fix the error open settings under extensions select the Run code configuration for the run-in terminal option and check it this is the first step that shows the output in the integrated terminal in vs code in the same settings screen on the top right corner you have the open Json settings button open it or you can click on the manage gear and select command palette and here search settings.json open user settings Json now that the settings.json file is open let's add a new entry here type in code dash Runner and select the executor map from the suggestion when you click the Run code icon provided by coderunner this is the list of commands that runs in the back end based on the language let's look for c-sharp in this list when you run a c-sharp program The Script CS command is executed this is what we need to change now let's change the script CS to.net run save the settings.json file let's go back to the code file and run the code using Code Runner icon now it works awesome if this video has helped you give this video a thumbs up and subscribe to tech support whale for more useful contents like this [Music]
Info
Channel: Tech Support Whale
Views: 15,099
Rating: undefined out of 5
Keywords: tech support whale, The term 'scriptcs' is not recognized, The term scriptcs is not recognized as the name of a cmdlet function script file or operable program, scriptcs is not recognized as an internal or external command, scriptcs is not recognized vs code, scriptcs not recognized code runner, vs code scriptcs not recognized, vs code scriptcs error, scriptcs error while running c sharp program in vs code, c sharp program scriptcs not recognized, scriptcs command not found
Id: j_Zoro8pC08
Channel Id: undefined
Length: 3min 3sec (183 seconds)
Published: Tue Jan 10 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.