Add separate debug (default) and release build tasks. Updated README to mention these.

This commit is contained in:
2022-01-19 18:17:46 +09:00
parent 86fbc5c014
commit 039c590205
2 changed files with 43 additions and 14 deletions

31
.vscode/tasks.json vendored
View File

@@ -4,7 +4,7 @@
"version": "2.0.0",
"tasks": [
{
"label": "build",
"label": "build: Debug",
"type": "shell",
"command": "msbuild",
"args": [
@@ -13,8 +13,10 @@
"/t:build",
// Do not generate summary otherwise it leads to duplicate errors in Problems panel
"/consoleloggerparameters:NoSummary",
"src/",
// Build specific configuration
"/p:Configuration=Debug",
// Your mod's source directory
"src/"
],
"group": {
"kind": "build",
@@ -26,6 +28,29 @@
},
// Use the standard MS compiler pattern to detect errors, warnings and infos
"problemMatcher": "$msCompile"
},
{
"label": "build: Release",
"type": "shell",
"command": "msbuild",
"args": [
// Ask msbuild to generate full paths for file names.
"/property:GenerateFullPaths=true",
"/t:build",
// Do not generate summary otherwise it leads to duplicate errors in Problems panel
"/consoleloggerparameters:NoSummary",
// Build specific configuration
"/p:Configuration=Release",
// Your mod's source directory
"src/"
],
"group": "build",
"presentation": {
// Reveal the output only if unrecognized errors occur.
"reveal": "silent"
},
// Use the standard MS compiler pattern to detect errors, warnings and infos
"problemMatcher": "$msCompile"
}
]
}