add tasks and launch for vscode
This commit is contained in:
50
.vscode/tasks.json
vendored
Normal file
50
.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "check env",
|
||||
"type": "shell",
|
||||
"command": "if [ \"${input:buildConfig}\" = \"Version22\" ]; then [ -n \"$VINTAGE_STORY_22\" ] || { echo 'ERROR: VINTAGE_STORY_22 is not set'; exit 1; }; [ -n \"$VINTAGE_STORY_DATA_22\" ] || { echo 'ERROR: VINTAGE_STORY_DATA_22 is not set'; exit 1; }; else [ -n \"$VINTAGE_STORY_21\" ] || { echo 'ERROR: VINTAGE_STORY_21 is not set'; exit 1; }; [ -n \"$VINTAGE_STORY_DATA_21\" ] || { echo 'ERROR: VINTAGE_STORY_DATA_21 is not set'; exit 1; }; fi",
|
||||
"windows": {
|
||||
"command": "if ('${input:buildConfig}' -eq 'Version22') { if (-not $env:VINTAGE_STORY_22) { Write-Host 'ERROR: VINTAGE_STORY_22 is not set'; exit 1 }; if (-not $env:VINTAGE_STORY_DATA_22) { Write-Host 'ERROR: VINTAGE_STORY_DATA_22 is not set'; exit 1 } } else { if (-not $env:VINTAGE_STORY_21) { Write-Host 'ERROR: VINTAGE_STORY_21 is not set'; exit 1 }; if (-not $env:VINTAGE_STORY_DATA_21) { Write-Host 'ERROR: VINTAGE_STORY_DATA_21 is not set'; exit 1 } }"
|
||||
},
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "build mod",
|
||||
"command": "dotnet",
|
||||
"type": "process",
|
||||
"dependsOn": ["check env"],
|
||||
"dependsOrder": "sequence",
|
||||
"args": [
|
||||
"build",
|
||||
"${input:buildProject}",
|
||||
"-c",
|
||||
"${input:buildConfig}",
|
||||
"/property:GenerateFullPaths=true",
|
||||
"/consoleloggerparameters:NoSummary;ForceNoAlign"
|
||||
],
|
||||
"problemMatcher": "$msCompile"
|
||||
}
|
||||
],
|
||||
"inputs": [
|
||||
{
|
||||
"id": "buildConfig",
|
||||
"type": "pickString",
|
||||
"description": "Build configuration",
|
||||
"options": ["Debug", "Release", "Version22"],
|
||||
"default": "Debug"
|
||||
},
|
||||
{
|
||||
"id": "buildProject",
|
||||
"type": "pickString",
|
||||
"description": "Project to build",
|
||||
"options": [
|
||||
"${workspaceFolder}/OrekiWoofsBeehives/OrekiWoofsBeehives.csproj",
|
||||
"${workspaceFolder}/RoamingBees/RoamingBees/RoamingBees.csproj",
|
||||
"${workspaceFolder}/OrekiWoofsBees.Full/OrekiWoofsBees.Full.csproj"
|
||||
],
|
||||
"default": "${workspaceFolder}/OrekiWoofsBees.Full/OrekiWoofsBees.Full.csproj"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user