About
A couple of days ago I stumbled upon these errors. I was unable to start up my C# .NET Core app and debug it(Task “clean” failed with exit code “1”). When I tried to access the terminal it crashed leaving me with the following errors:
- The terminal process command ‘C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe’ failed to launch (exit code: {2})
- The terminal process terminated with exit code: {1}
- The terminal process terminated with exit code: {0}
Solution
I saw quite a few cases of these errors showing up for different reasons on the VS Code Github issues pages. In my particular case, the problem was the antivirus. Apparently, it was blocking something. The solution was to simply whitelist(exclude from detection) the installation directory of Visual Studio Code.
Hopefully, this has helped.
Solved! Was having this problem caused by Malware Bytes. Thank you!
I am glad my post helped you. 🙂