Skip to content

Commit

Permalink
Improved tasks for VSCode
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-yagodin committed Aug 24, 2020
1 parent 08e139c commit 27ff7e2
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [],
Expand Down
89 changes: 49 additions & 40 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}

0 comments on commit 27ff7e2

Please sign in to comment.