Skip to content

Instantly share code, notes, and snippets.

@dpraimeyuu
Forked from hoangitk/task-msbuild.js
Created September 24, 2021 05:34
Show Gist options
  • Save dpraimeyuu/0c9db8f0ae6b5afd7a3c914906fdb5b7 to your computer and use it in GitHub Desktop.
Save dpraimeyuu/0c9db8f0ae6b5afd7a3c914906fdb5b7 to your computer and use it in GitHub Desktop.
VSCode task with msbuild
{
"version": "0.1.0",
"command": "cmd",
"args": [
"/c"
],
"showOutput": "always",
"echoCommand": true,
"tasks": [
{
"isBuildCommand": true,
"taskName": "MSBuild.exe",
"args": [
"${workspaceRoot}/src/Example.sln",
"/t:Rebuild",
"/p:Configuration=Debug;Platform=Any CPU;GenerateFullPaths=true",
"/m"
],
"showOutput": "always",
"problemMatcher": "$msCompile"
},
{
"taskName": "nunit3-console.exe",
"args": [
"${workspaceRoot}/src/Example.sln"
],
"showOutput": "always"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment