You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

74 lines
2.1 KiB

  1. {
  2. "version": "2.0.0",
  3. "tasks": [
  4. {
  5. "label": "build",
  6. "command": "dotnet",
  7. "type": "process",
  8. "group": {
  9. "kind": "build",
  10. "isDefault": true
  11. },
  12. "args": [
  13. "build",
  14. "${workspaceFolder}/simples/JT808.Gateway.SimpleServer/JT808.Gateway.SimpleServer.csproj",
  15. "/property:GenerateFullPaths=true",
  16. "/consoleloggerparameters:NoSummary"
  17. ],
  18. "problemMatcher": "$msCompile"
  19. },
  20. {
  21. "label": "publish",
  22. "command": "dotnet",
  23. "type": "process",
  24. "args": [
  25. "publish",
  26. "${workspaceFolder}/simples/JT808.Gateway.SimpleServer/JT808.Gateway.SimpleServer.csproj",
  27. "/p:Configuration=Release",
  28. "/p:PublishDir=${workspaceFolder}/.output/linux-x64",
  29. "/p:RuntimeIdentifier=linux-x64",
  30. "/p:PublishSingleFile=true",
  31. "/p:PublishTrimmed=true",
  32. "/p:IncludeNativeLibrariesForSelfExtract=true",
  33. "/consoleloggerparameters:NoSummary"
  34. ],
  35. "problemMatcher": "$msCompile"
  36. },
  37. {
  38. "label": "build docker",
  39. "command": "dotnet",
  40. "hide": true,
  41. "type": "process",
  42. "args": [
  43. "publish",
  44. "${workspaceFolder}/simples/JT808.Gateway.SimpleServer/JT808.Gateway.SimpleServer.csproj",
  45. "/p:Configuration=Release",
  46. "/p:PublishDir=${workspaceFolder}/.output/docker",
  47. "/consoleloggerparameters:NoSummary"
  48. ],
  49. "problemMatcher": "$msCompile"
  50. },
  51. {
  52. "label": "build docker image",
  53. "detail": "打包示例网关镜像",
  54. "type": "shell",
  55. "command": "docker compose build --no-cache",
  56. "dependsOn": ["build docker"],
  57. "problemMatcher": "$msCompile"
  58. },
  59. {
  60. "label": "watch",
  61. "command": "dotnet",
  62. "type": "process",
  63. "args": [
  64. "watch",
  65. "run",
  66. "${workspaceFolder}/simples/JT808.Gateway.SimpleServer/JT808.Gateway.SimpleServer.csproj",
  67. "/property:GenerateFullPaths=true",
  68. "/consoleloggerparameters:NoSummary"
  69. ],
  70. "problemMatcher": "$msCompile"
  71. }
  72. ]
  73. }