{
    "version": "0.1.0",
    "command": "dotnet",
    "isShellCommand": true,
    "args": [],
    "tasks": [
        {
            "taskName": "build",
            "args": [
                "${workspaceRoot}\\project.json"
            ],
            "isBuildCommand": true,
            "problemMatcher": "$msCompile"
        }
    ]
}
{
    "version": "0.1.0",
    "command": "dotnet",
    "isShellCommand": true,
    "args": [],
    "tasks": [
        {
            "taskName": "build",
            "args": [
                "${workspaceRoot}\\project.json"
            ],
            "isBuildCommand": true,
            "problemMatcher": "$msCompile"
        }
    ],
    "linux": {
        "tasks": [
            {
                "taskName": "build",
                "args": [
                    "${workspaceRoot}/project.json"
                ]
            }
        ]
    },
    "osx": {
        "tasks": [
            {
                "taskName": "build",
                "args": [
                    "${workspaceRoot}//project.json"
                ]
            }
        ]
    }
}

Update VSCode task for x-platform execution
Update VSCode task for x-platform execution

The platform specific properties to override project
path literals. See:
https://code.visualstudio.com/docs/editor/tasks\#_operating-system-specific-properties

Thanks!
