{ // Attività di Visual Studio Code: Terminale > Esegui attività. "build" è quella usata dal debug (launch.json). "version": "2.0.0", "tasks": [ { "label": "build", "type": "process", "command": "dotnet", "args": ["build", "${workspaceFolder}/Khaemhat.sln", "-c", "Debug", "/property:GenerateFullPaths=true", "/consoleloggerparameters:NoSummary"], "group": { "kind": "build", "isDefault": true }, "problemMatcher": "$msCompile" }, { "label": "test", "type": "process", "command": "dotnet", "args": ["test", "${workspaceFolder}/Khaemhat.sln", "-c", "Debug", "/property:GenerateFullPaths=true"], "options": { "env": { "KHAEMHAT_LICENSE_MODE": "test" } }, "group": { "kind": "test", "isDefault": true }, "problemMatcher": "$msCompile" }, { "label": "watch (web)", "type": "process", "command": "dotnet", "args": ["watch", "run", "--project", "${workspaceFolder}/src/Khaemhat.Web", "--", "--urls", "http://localhost:5080"], "options": { "env": { "ASPNETCORE_ENVIRONMENT": "Development", "KHAEMHAT_DATA_DIR": "${workspaceFolder}/.data/dev", "KHAEMHAT_SYSTEM_DB": "sqlite:///${workspaceFolder}/.data/dev/system.db", "KHAEMHAT_LICENSE_MODE": "test" } }, "isBackground": true, "problemMatcher": "$msCompile" }, { "label": "check-packages", "type": "shell", "command": "bash scripts/check-packages.sh", "problemMatcher": [] }, { "label": "docker build", "type": "shell", "command": "docker build -f docker/Dockerfile -t khaemhat:dev .", "problemMatcher": [] } ] }