To customize an existing build task:
This creates a tasks.json file in your folder. This file contains the custom build tasks for the current workspace:
{
"version": "2.0.0",
"tasks": [
{
"type": "COBOL",
"msBuildExe": "path to \\MSBuild.exe",
"buildTarget": "path\\projname.cblproj",
"group": "build",
"problemMatcher": [
"$COBOLMSBuild"
],
"group": "build",
"label": "COBOL: MSBuild (projname.cblproj)",
}
]
If you choose the PL/I build task, PL/I: MSBuild (projname.pliproj), the tasks.json file looks similar to the one for COBOL:
"version": "2.0.0",
"tasks": [
{
"type": "PLI-MSBuild",
"command": "path to \\MSBuild.exe",
"buildTarget": "path\\projname.pliproj",
"problemMatcher": [
"$PLIMSBuild"
],
"group": "build",
"label": "PL/I: MSBuild (projname.pliproj)"
}
]
"args": ["/p:configuration=release"]
The following examples show how you can specify multiple arguments:
"args": ["/p:Configuration=Release", "/p:Platform=x86"]
"args": ["/p:Configuration=Release,Platform=x86" ]
"args": ["'/p:Configuration=Release;Platform=x86'" ]