mirror of
https://github.com/prime31/FNA-VSCode-Template.git
synced 2025-10-31 21:50:44 +07:00
183 lines
5.9 KiB
JSON
183 lines
5.9 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "Restore Project",
|
|
"type": "shell",
|
|
"command": "msbuild /t:restore",
|
|
"group": "build",
|
|
"problemMatcher": "$msCompile"
|
|
},
|
|
|
|
{
|
|
// this does a bunch of stuff:
|
|
// - update submodules to lastest (fetch latest Nez version)
|
|
// - clean, restore and rebuild Nez.sln (nuget restore to get latest packages)
|
|
// - clean, restore and rebuild Nez.FNA.sln (nuget restore Nez.FNA)
|
|
"label": "Update, Restore and Rebuild Nez",
|
|
"type": "shell",
|
|
"command": "git submodule foreach --recursive git pull && msbuild Nez/Nez.sln /t:clean /t:restore && msbuild Nez/Nez.FNA.sln /t:clean /t:restore",
|
|
"group": "build",
|
|
"problemMatcher": "$msCompile",
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "shared",
|
|
"showReuseMessage": false,
|
|
"clear": true
|
|
},
|
|
},
|
|
|
|
{
|
|
"label": "Clean Project",
|
|
"type": "shell",
|
|
"command": "msbuild project_name /t:clean /p:configuration=Debug && msbuild project_name /t:clean /p:configuration=Release",
|
|
"group": "build",
|
|
"problemMatcher": "$msCompile",
|
|
},
|
|
|
|
{
|
|
"label": "Build (Debug)",
|
|
"type": "shell",
|
|
"command": "msbuild",
|
|
"args": [
|
|
"project_name.sln",
|
|
"/property:GenerateTargetFrameworkAttribute=false",
|
|
"/p:configuration=Debug",
|
|
"/p:platform=Any CPU",
|
|
"/t:build"
|
|
],
|
|
"group": "build",
|
|
"problemMatcher": "$msCompile",
|
|
},
|
|
|
|
{
|
|
"label": "Build (Release)",
|
|
"type": "shell",
|
|
"command": "msbuild",
|
|
"args": [
|
|
"project_name.sln",
|
|
"/property:GenerateTargetFrameworkAttribute=false",
|
|
"/p:configuration=Release",
|
|
"/p:platform=Any CPU",
|
|
"/t:build"
|
|
],
|
|
"group": "build",
|
|
"problemMatcher": "$msCompile",
|
|
},
|
|
|
|
{
|
|
"label": "Build and Run (Debug)",
|
|
"type": "shell",
|
|
"group": "build",
|
|
"osx":{
|
|
"command": "DYLD_LIBRARY_PATH=${workspaceFolder}/project_name/bin/Debug/osx/ mono ${workspaceFolder}/project_name/bin/Debug/project_name.exe"
|
|
},
|
|
"windows":{
|
|
"command": "start",
|
|
"args": [
|
|
"${workspaceFolder}/project_name/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}/project_name/bin/Release/osx/ mono ${workspaceFolder}/project_name/bin/Release/project_name.exe"
|
|
},
|
|
"windows":{
|
|
"command": "start",
|
|
"args": [
|
|
"${workspaceFolder}/project_name/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": "powershell",
|
|
"args": [
|
|
"-File",
|
|
"${workspaceFolder}/.vscode/buildEffects.ps1"
|
|
],
|
|
},
|
|
"problemMatcher": "$msCompile"
|
|
},
|
|
|
|
{
|
|
"label": "Build Content",
|
|
"type": "shell",
|
|
"group": "build",
|
|
"command": "msbuild /t:BuildContent",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/project_name"
|
|
},
|
|
"problemMatcher": "$msCompile"
|
|
},
|
|
|
|
{
|
|
"label": "Force Build Content",
|
|
"type": "shell",
|
|
"group": "build",
|
|
"osx": {
|
|
"command": "mono /Applications/Pipeline.app/Contents/MonoBundle/MGCB.exe /@:Content.mgcb -r",
|
|
},
|
|
"windows": {
|
|
"command":"C:/Program Files (x86)/MSBuild/MonoGame/v3.0/Tools/MGCB.exe",
|
|
"args": [
|
|
"/@:Content.mgcb",
|
|
"-r"
|
|
]
|
|
},
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/project_name/CompiledContent"
|
|
},
|
|
"problemMatcher": "$msCompile"
|
|
},
|
|
|
|
{
|
|
"label": "Open Pipeline Tool",
|
|
"type": "shell",
|
|
"group": "build",
|
|
"osx": {
|
|
"command": "export MONOGAME_PIPELINE_PROJECT=${workspaceFolder}/project_name/CompiledContent/Content.mgcb && /Applications/Pipeline.app/Contents/MacOS/Pipeline"
|
|
},
|
|
"windows": {
|
|
"command": "${workspaceFolder}/project_name/CompiledContent/Content.mgcb"
|
|
},
|
|
"problemMatcher": "$msCompile"
|
|
},
|
|
|
|
{
|
|
"label": "Process T4 Templates",
|
|
"type": "shell",
|
|
"osx": {
|
|
"command": "${workspaceFolder}/.vscode/processT4Templates.sh"
|
|
},
|
|
"windows": {
|
|
"command": "powershell",
|
|
"args": [
|
|
"-File",
|
|
"${workspaceFolder}/.vscode/processT4Templates.ps1"
|
|
]
|
|
},
|
|
"group": "build",
|
|
"problemMatcher": "$msCompile",
|
|
},
|
|
]
|
|
}
|