Skip to content

Commit

Permalink
Add 'Client/Server (Release)' build for VSCode (new-frontiers-14#1678)
Browse files Browse the repository at this point in the history
  • Loading branch information
arimah authored Jul 15, 2024
1 parent fbfc77e commit d2a4060
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@
"Client"
],
"preLaunchTask": "build"
},
// Frontier begin
{
"name": "Server/Client (Release)",
"configurations": [
"Server",
"Client"
],
"preLaunchTask": "build-release"
}
// Frontier end
]
}
}
20 changes: 20 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,26 @@
},
"problemMatcher": "$msCompile"
},
// Frontier begin
{
"label": "build-release",
"command": "dotnet",
"type": "shell",
"args": [
"build",
"--configuration=Release", // Build in release mode. Note: --, not /. /configuration doesn't work, because Microsoft.
"/property:GenerateFullPaths=true", // Ask dotnet build to generate full paths for file names.
"/consoleloggerparameters:NoSummary" // Do not generate summary otherwise it leads to duplicate errors in Problems panel
],
"group": {
"kind": "build"
},
"presentation": {
"reveal": "silent"
},
"problemMatcher": "$msCompile"
},
// Frontier end
{
"label": "build-yaml-linter",
"command": "dotnet",
Expand Down

0 comments on commit d2a4060

Please sign in to comment.