OK. I am in .NetCore and using VSCode on Mac machine. Now, whenever I run my C# project then VSCode shows this annoying message:
The preLaunch task 'build' terminated with exit code 1
It shows me option to click on a button called show problems
. When I click on this button, it only shows the warning messages. Now, if it was errors then its OK to see this message. But the fact that it shows this message every time there are warning(Which to me is OK). That is very annoying. Is there any way I can configure VS Code to not show these messages on things like warning?
2 Answers
Answers 1
It might be a problem with your task.json
file, check the arguments of the file and make sure the build is pointing at the right location:
{ "version": "2.0.0", "tasks": [ { "label": "build", "command": "dotnet", "type": "process", "args": [ "build", "${workspaceFolder}/MyProject.csproj" ], "problemMatcher": "$msCompile" } ] }
Answers 2
It means you're code isn't running properly as it has returned code 1.
Whenever vscode shows you this message, simply choose cancle and then go to your terminal. It should show you the problems. Then you should start debugging your code.
Please note that as you know, when debugging, Breakpoints lend the most help.
0 comments:
Post a Comment