Skip to content

Instantly share code, notes, and snippets.

@ViktorHofer
Created June 2, 2022 16:23
Show Gist options
  • Save ViktorHofer/65803fc9052a6ba70de63ad7d295dbcc to your computer and use it in GitHub Desktop.
Save ViktorHofer/65803fc9052a6ba70de63ad7d295dbcc to your computer and use it in GitHub Desktop.
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"presentation": {
"reveal": "always",
"panel": "shared",
"focus": true
},
"tasks": [
{
"label": "dotnet restore",
"detail": "Restore the currently opened .NET project.",
"command": "${workspaceRoot}/dotnet.sh",
"args": [
"restore",
"${file}"
],
"windows": {
"command": "${workspaceRoot}\\dotnet.cmd"
},
"type": "shell",
"promptOnClose": true,
"problemMatcher": "$msCompile"
},
{
"label": "dotnet build",
"detail": "Build the currently opened .NET project.",
"command": "${workspaceRoot}/dotnet.sh",
"args": [
"build",
"${file}"
],
"windows": {
"command": "${workspaceRoot}\\dotnet.cmd"
},
"type": "shell",
"group": {
"kind": "build",
"isDefault": true
},
"promptOnClose": true,
"problemMatcher": "$msCompile"
},
{
"label": "dotnet test",
"detail": "Test the currently opened .NET project.",
"command": "${workspaceRoot}/dotnet.sh",
"args": [
"test",
"${file}"
],
"windows": {
"command": "${workspaceRoot}\\dotnet.cmd"
},
"type": "shell",
"group": {
"kind": "test",
"isDefault": true
},
"promptOnClose": true,
"problemMatcher": "$msCompile"
},
{
"label": "dotnet pack",
"detail": "Pack the currently opened .NET project.",
"command": "${workspaceRoot}/dotnet.sh",
"args": [
"pack",
"${file}"
],
"windows": {
"command": "${workspaceRoot}\\dotnet.cmd"
},
"type": "shell",
"promptOnClose": true,
"problemMatcher": "$msCompile"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment