vscode and no-configlib support
This commit is contained in:
24
.vscode/launch.json
vendored
Normal file
24
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Vintage Story Client",
|
||||
"type": "coreclr",
|
||||
"request": "launch",
|
||||
"preLaunchTask": "build mod",
|
||||
"program": "${env:VINTAGE_STORY}/Vintagestory.dll",
|
||||
"args": [
|
||||
"--tracelog",
|
||||
"--dataPath",
|
||||
"${env:VINTAGE_STORY_DATA}",
|
||||
"--addModPath",
|
||||
"${workspaceFolder}/ChestPreview/ChestPreview/bin/Debug/Mods",
|
||||
"--addOrigin",
|
||||
"${workspaceFolder}/ChestPreview/ChestPreview/assets"
|
||||
],
|
||||
"cwd": "${env:VINTAGE_STORY}",
|
||||
"console": "integratedTerminal",
|
||||
"stopAtEntry": false
|
||||
}
|
||||
]
|
||||
}
|
||||
32
.vscode/tasks.json
vendored
Normal file
32
.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "check env",
|
||||
"type": "shell",
|
||||
"command": "[ -n \"$VINTAGE_STORY\" ] || { echo 'ERROR: VINTAGE_STORY is not set'; exit 1; }; [ -n \"$VINTAGE_STORY_DATA\" ] || { echo 'ERROR: VINTAGE_STORY_DATA is not set'; exit 1; }",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "build mod",
|
||||
"command": "dotnet",
|
||||
"type": "process",
|
||||
"dependsOn": ["check env"],
|
||||
"dependsOrder": "sequence",
|
||||
"options": {
|
||||
"env": {
|
||||
"VINTAGE_STORY": "${env:VINTAGE_STORY}"
|
||||
}
|
||||
},
|
||||
"args": [
|
||||
"build",
|
||||
"${workspaceFolder}/ChestPreview/ChestPreview/ChestPreview.csproj",
|
||||
"-c",
|
||||
"Debug",
|
||||
"/property:GenerateFullPaths=true",
|
||||
"/consoleloggerparameters:NoSummary;ForceNoAlign"
|
||||
],
|
||||
"problemMatcher": "$msCompile"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user