FNA-VSCode-Template/project_name/.vscode/tasks.json
2018-10-09 12:32:33 -04:00

93 lines
2.6 KiB
JSON

{
"version": "2.0.0",
"tasks": [
{
"label": "Restore Project",
"type": "shell",
"command": "msbuild /t:restore",
"group": "build",
"problemMatcher": "$msCompile"
},
{
"label": "Clean Project",
"type": "shell",
"command": "msbuild /t:clean /p:configuration=Debug ; msbuild /t:clean /p:configuration=Release",
"group": "build",
"problemMatcher": "$msCompile",
},
{
"label": "Build (Debug)",
"type": "shell",
"command": "msbuild",
"args": [
"/p:configuration=Debug",
"/t:build"
],
"group": "build",
"problemMatcher": "$msCompile",
},
{
"label": "Build (Release)",
"type": "shell",
"command": "msbuild",
"args": [
"/p:configuration=Release",
"/t:build"
],
"group": "build",
"problemMatcher": "$msCompile",
},
{
"label": "Build and Run (Debug)",
"type": "shell",
"group": "build",
"osx":{
"command": "DYLD_LIBRARY_PATH=${workspaceFolder}/bin/Debug/osx/ mono ${workspaceFolder}/bin/Debug/project_name.exe"
},
"windows":{
"command": "cmd",
"args": [
"/k",
"${workspaceFolder}/bin/Debug/project_name.exe"
]
},
"dependsOn": "Build (Debug)",
"problemMatcher": "$msCompile"
},
{
"label": "Build and Run (Release)",
"type": "shell",
"group": "build",
"osx":{
"command": "DYLD_LIBRARY_PATH=${workspaceFolder}/bin/Release/osx/ mono ${workspaceFolder}/bin/Release/project_name.exe"
},
"windows":{
"command": "cmd",
"args": [
"/k",
"${workspaceFolder}/bin/Release/project_name.exe"
]
},
"dependsOn": "Build (Release)",
"problemMatcher": "$msCompile"
},
{
"label": "Build Effects",
"type": "shell",
"group": "build",
"osx":{
"command": "${workspaceFolder}/.vscode/buildEffects.sh"
},
"windows":{
"command": "& ${workspaceFolder}/.vscode/buildEffects.ps1"
},
"problemMatcher": "$msCompile"
}
]
}