Ver código fonte

Added vscode config files

Brad Robinson 4 anos atrás
pai
commit
361d10260c
3 arquivos alterados com 41 adições e 6 exclusões
  1. 17 0
      .vscode/launch.json
  2. 3 0
      .vscode/settings.json
  3. 21 6
      .vscode/tasks.json

+ 17 - 0
.vscode/launch.json

@@ -0,0 +1,17 @@
+{
+    // Use IntelliSense to learn about possible attributes.
+    // Hover to view descriptions of existing attributes.
+    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+    "version": "0.2.0",
+    "configurations": [
+        {
+            "name": "Run Tests",
+            "type": "coreclr",
+            "request": "launch",
+            "preLaunchTask": "Build Tests",
+            "program": "${workspaceFolder}/Build/Debug/Topten.JsonKit.Test/netcoreapp2.1/Topten.JsonKit.Test.dll",
+            "console": "internalConsole"
+        },
+
+    ]
+}

+ 3 - 0
.vscode/settings.json

@@ -0,0 +1,3 @@
+{
+    "dotnet-test-explorer.testProjectPath": "**/*Test.@(csproj|vbproj|fsproj)"
+}

+ 21 - 6
.vscode/tasks.json

@@ -5,19 +5,34 @@
     "version": "2.0.0",
     "tasks": [
         {
-            "label": "build",
+            "label": "Build JsonKit",
             "command": "dotnet",
             "type": "shell",
             "args": [
                 "build",
-                // Ask dotnet build to generate full paths for file names.
-                "/property:GenerateFullPaths=true",
-                // Do not generate summary otherwise it leads to duplicate errors in Problems panel
-                "/consoleloggerparameters:NoSummary"
+                "/consoleloggerparameters:NoSummary",
+                "./Topten.JsonKit/Topten.JsonKit.csproj"
             ],
             "group": "build",
             "presentation": {
-                "reveal": "silent"
+                "reveal": "always",
+                "clear": true
+            },
+            "problemMatcher": "$msCompile"
+        },
+        {
+            "label": "Build Tests",
+            "command": "dotnet",
+            "type": "shell",
+            "args": [
+                "build",
+                "/consoleloggerparameters:NoSummary",
+                "./Topten.JsonKit.Test/Topten.JsonKit.Test.csproj"
+            ],
+            "group": "build",
+            "presentation": {
+                "reveal": "always",
+                "clear": true
             },
             "problemMatcher": "$msCompile"
         }