-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtasks.json
84 lines (84 loc) · 2.21 KB
/
tasks.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/src/Jt808TerminalEmulator.Api/Jt808TerminalEmulator.Api.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/src/Jt808TerminalEmulator.Api/Jt808TerminalEmulator.Api.csproj",
"/P:GenerateFullPaths=true",
"/p:RuntimeIdentifier=${input:os-rif}",
"/p:PublishSingleFile=${input:single}",
"/p:PublishDir=${workspaceFolder}/.output/${input:os-rif}",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"${workspaceFolder}/src/Jt808TerminalEmulator.Api/Jt808TerminalEmulator.Api.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "build docker image",
"detail": "编译镜像",
"hide": true,
"type": "shell",
"command": "docker compose build --no-cache",
"dependsOn": ["publish"],
"problemMatcher": []
},
{
"label": "push docker image",
"detail": "推送镜像",
"type": "shell",
"command": "docker compose push",
"dependsOn": ["build docker image"],
"problemMatcher": []
}
],
"inputs": [
{
"id": "os-rif",
"type": "pickString",
"description": "请选择目标os平台",
"options": [
{ "label": "windows x64", "value": "win-x64" },
{ "label": "linux x64", "value": "linux-x64" }
],
"default": "linux-x64"
},
{
"id": "single",
"type": "pickString",
"description": "是否发布单文件",
"options": [
{ "label": "是", "value": "true" },
{ "label": "否", "value": "false" }
],
"default": "false"
}
]
}