tasks.json 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {
  2. "version": "2.0.0",
  3. "tasks": [
  4. {
  5. "label": "build-windows",
  6. "type": "shell",
  7. "command": "dotnet",
  8. "args": ["build", "Platforms/Windows/RenderTarget2D.Windows.csproj"],
  9. "group": "build",
  10. "problemMatcher": ["$msCompile"]
  11. },
  12. {
  13. "label": "build-desktopgl",
  14. "type": "shell",
  15. "command": "dotnet",
  16. "args": ["build", "Platforms/Desktop/RenderTarget2D.DesktopGL.csproj"],
  17. "group": "build",
  18. "problemMatcher": ["$msCompile"]
  19. },
  20. {
  21. "label": "build-android",
  22. "type": "shell",
  23. "command": "dotnet",
  24. "args": ["build", "Platforms/Android/RenderTarget2D.Android.csproj"],
  25. "group": "build",
  26. "problemMatcher": ["$msCompile"]
  27. },
  28. {
  29. "label": "build-ios",
  30. "type": "shell",
  31. "command": "dotnet",
  32. "args": ["build", "Platforms/iOS/RenderTarget2D.iOS.csproj"],
  33. "group": "build",
  34. "problemMatcher": ["$msCompile"]
  35. },
  36. {
  37. "label": "run-windows",
  38. "type": "shell",
  39. "command": "dotnet",
  40. "args": ["run", "--project", "Platforms/Windows/RenderTarget2D.Windows.csproj"],
  41. "group": "test",
  42. "dependsOn": "build-windows"
  43. },
  44. {
  45. "label": "run-desktopgl",
  46. "type": "shell",
  47. "command": "dotnet",
  48. "args": ["run", "--project", "Platforms/Desktop/RenderTarget2D.DesktopGL.csproj"],
  49. "group": "test",
  50. "dependsOn": "build-desktopgl"
  51. },
  52. {
  53. "label": "run-android",
  54. "type": "shell",
  55. "command": "dotnet",
  56. "args": ["run", "--project", "Platforms/Android/RenderTarget2D.Android.csproj"],
  57. "group": "test",
  58. "dependsOn": "build-android"
  59. },
  60. {
  61. "label": "run-ios",
  62. "type": "shell",
  63. "command": "dotnet",
  64. "args": ["run", "--project", "Platforms/iOS/RenderTarget2D.iOS.csproj"],
  65. "group": "test",
  66. "dependsOn": "build-ios"
  67. },
  68. {
  69. "label": "clean",
  70. "type": "shell",
  71. "command": "dotnet",
  72. "args": ["clean"],
  73. "group": "build"
  74. }
  75. ]
  76. }