From 27ff7e2e1eb2170dcd448aedc5ed045a4ed2784e Mon Sep 17 00:00:00 2001 From: roman-yagodin Date: Mon, 24 Aug 2020 13:18:59 +0400 Subject: [PATCH] Improved tasks for VSCode GH-7 --- .vscode/launch.json | 2 +- .vscode/tasks.json | 89 +++++++++++++++++++++++++-------------------- 2 files changed, 50 insertions(+), 41 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index ebcf3a9..2cd7b71 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -8,7 +8,7 @@ "name": ".NET Core Launch (console)", "type": "coreclr", "request": "launch", - "preLaunchTask": "build", + "preLaunchTask": "Build (Debug)", // If you have changed target frameworks, make sure to update the program path. "program": "${workspaceFolder}/R7.Webmate.Tests/bin/Debug/netcoreapp2.2/R7.Webmate.Tests.dll", "args": [], diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 453d1ec..6142063 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,42 +1,51 @@ { - "version": "2.0.0", - "tasks": [ - { - "label": "build", - "command": "dotnet", - "type": "process", - "args": [ - "build", - "${workspaceFolder}/R7.Webmate.Tests/R7.Webmate.Tests.csproj", - "/property:GenerateFullPaths=true", - "/consoleloggerparameters:NoSummary" - ], - "problemMatcher": "$msCompile" - }, - { - "label": "publish", - "command": "dotnet", - "type": "process", - "args": [ - "publish", - "${workspaceFolder}/R7.Webmate.Tests/R7.Webmate.Tests.csproj", - "/property:GenerateFullPaths=true", - "/consoleloggerparameters:NoSummary" - ], - "problemMatcher": "$msCompile" - }, - { - "label": "watch", - "command": "dotnet", - "type": "process", - "args": [ - "watch", - "run", - "${workspaceFolder}/R7.Webmate.Tests/R7.Webmate.Tests.csproj", - "/property:GenerateFullPaths=true", - "/consoleloggerparameters:NoSummary" - ], - "problemMatcher": "$msCompile" - } - ] + // see http://go.microsoft.com/fwlink/?LinkId=733558 for the documentation about the tasks.json format + "version": "2.0.0", + "args": [ + // enable parallel build + "-m" + ], + // always show output window + "presentation": { + "reveal": "always" + }, + "command": "msbuild", + "windows": { + "command": "C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\MSBuild.exe" + }, + "tasks": [ + { + "label": "Build (Debug)", + "group": { + "kind": "build", + "isDefault": true + }, + "args": ["/t:Build", "/p:Configuration=Debug"], + // use the standard MS compiler pattern to detect errors, warnings and infos + "problemMatcher": "$msCompile" + }, + { + "label": "Build (Release)", + "group": "build", + "args": ["/t:Build", "/p:Configuration=Release"], + // use the standard MS compiler pattern to detect errors, warnings and infos + "problemMatcher": "$msCompile" + }, + { + "label": "Clean", + "group": "build", + "args": ["/t:Clean"], + // use the standard MS compiler pattern to detect errors, warnings and infos + "problemMatcher": "$msCompile" + }, + { + "label": "Test", + "command": "dotnet", + "group": "test", + "type": "process", + "args": [ "test" ], + // use the standard MS compiler pattern to detect errors, warnings and infos + "problemMatcher": "$msCompile" + } + ] }