tasks.json
{
"version": "2.0.0",
"echoCommand": true,
"tasks": [
{
"label": "build",
"type": "process",
"command": "cmd",
"args": [
"/C %vcvarsall% && cl /Od /Zi /EHsc /Fd:%out%/vc141.pdb /Fo:%out%/%name%.obj ./%src%/*.cpp /link /OUT:%out%/%name%.%ext% /PDB:%out%/%name%.pdb",
],
"group": {
"kind": "build",
"isDefault": true
}
}
],
"options": {
"env": {
"src": "src",
"out": "bin",
"name": "test",
"ext": "exe",
"vcvarsall": "D:/MSVS/BuildTools/VC/Auxiliary/Build/vcvarsall.bat x64",
}
}
}
The terminal process terminated with exit code: 2