Skip to content

Instantly share code, notes, and snippets.

@solvingj
Last active June 20, 2019 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save solvingj/8e9aa575aa0c6dd3db655f680e49f44a to your computer and use it in GitHub Desktop.
Save solvingj/8e9aa575aa0c6dd3db655f680e49f44a to your computer and use it in GitHub Desktop.
Current Schema of Tasks.vs.json
{
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
"default": {
"type": "object",
"properties": {
"taskName": {
"type": "string"
},
"taskLabel": {
"type": "string"
},
"appliesTo": {
"type": "string"
},
"contextType": {
"type": "string",
"enum": [
"custom",
"build",
"clean",
"rebuild"
]
},
"output": {
"type": "string"
},
"inheritEnvironments": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"defaultTask": {
"allOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"default"
]
}
}
},
{
"$ref": "#/definitions/default"
}
]
},
"remote": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"remote"
]
},
"remoteMachineName": {
"type": "string"
},
"command": {
"type": "string"
},
"remoteWorkingDirectory": {
"type": "string"
},
"localCopyDirectory": {
"type": "string"
},
"remoteCopyDirectory": {
"type": "string"
},
"remoteCopyMethod": {
"type": "string",
"enum": [
"none",
"sftp",
"rsync"
]
},
"remoteCopySourcesOutputVerbosity": {
"type": "string",
"enum": [
"Normal",
"Verbose",
"Diagnostic"
]
},
"rsyncCommandArgs": {
"type": "string",
"default": "-t --delete"
},
"remoteCopyExclusionList": {
"type": "array"
}
}
},
"remoteTask": {
"allOf": [
{
"$ref": "#/definitions/default"
},
{
"$ref": "#/definitions/remote"
}
]
},
"launch": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"launch"
]
},
"command": {
"type": "string"
},
"args": {
"type": "array"
},
"launchOption": {
"type": "string",
"enum": [
"None",
"ContinueOnError",
"IgnoreError"
]
},
"workingDirectory": {
"type": "string"
},
"customLaunchCommand": {
"type": "string"
},
"customLaunchCommandArgs": {
"type": "string"
},
"envVars": {
"type": "object"
},
"commands": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"command": {
"type": "string"
},
"args": {
"type": "array"
},
"launchOption": {
"type": "string",
"enum": [
"None",
"ContinueOnError",
"IgnoreError"
]
},
"workingDirectory": {
"type": "string"
},
"customLaunchCommand": {
"type": "string"
},
"customLaunchCommandArgs": {
"type": "string"
},
"envVars": {
"type": "object"
}
}
}
]
}
}
},
"launchTask": {
"allOf": [
{
"$ref": "#/definitions/default"
},
{
"$ref": "#/definitions/launch"
}
]
},
"msbuild": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"msbuild"
]
},
"verbosity": {
"type": "string",
"enum": [
"Quiet",
"Minimal",
"Normal",
"Detailed",
"Diagnostic"
]
},
"toolsVersion": {
"type": "string"
},
"globalProperties": {
"type": "object"
},
"properties": {
"type": "object"
},
"targets": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"msbuildTask": {
"allOf": [
{
"$ref": "#/definitions/default"
},
{
"$ref": "#/definitions/msbuild"
}
]
}
},
"type": "object",
"properties": {
"version": {
"type": "string"
},
"variables": {
"type": "object"
},
"tasks": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/definitions/defaultTask"
},
{
"$ref": "#/definitions/remoteTask"
},
{
"$ref": "#/definitions/launchTask"
},
{
"$ref": "#/definitions/msbuildTask"
}
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment