Last active
April 29, 2019 10:54
-
-
Save guardrex/19868ad5dc0a8c5f9473 to your computer and use it in GitHub Desktop.
VS Code Tasks file to work with dotnet cli
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.1.0", | |
"command": "cmd", | |
"isShellCommand": true, | |
"showOutput": "silent", | |
"args": [ | |
"/c" | |
], | |
"tasks": [ | |
{ | |
"taskName": "restore", | |
"suppressTaskName": true, | |
"args" : ["dotnet", "restore"], | |
"showOutput": "always", | |
"problemMatcher": "$msCompile" | |
}, | |
{ | |
"taskName": "publish debug 2012R2", | |
"suppressTaskName": true, | |
"args" : ["dotnet", "publish", "--configuration", "Debug", "--runtime", "win8-x64"], | |
"showOutput": "always", | |
"isBuildCommand": true, | |
"problemMatcher": "$msCompile" | |
}, | |
{ | |
"taskName": "publish release 2012R2", | |
"suppressTaskName": true, | |
"args" : ["dotnet", "publish", "--configuration", "Release", "--runtime", "win8-x64"], | |
"showOutput": "always", | |
"isBuildCommand": true, | |
"problemMatcher": "$msCompile" | |
}, | |
{ | |
"taskName": "publish release Nano", | |
"suppressTaskName": true, | |
"args" : ["dotnet", "publish", "--configuration", "Release", "--runtime", "win10-x64"], | |
"showOutput": "always", | |
"isBuildCommand": true, | |
"problemMatcher": "$msCompile" | |
}, | |
{ | |
"taskName": "processcss", | |
"suppressTaskName": true, | |
"args" : ["gulp", "processCSS"] | |
}, | |
{ | |
"taskName": "processsjs", | |
"suppressTaskName": true, | |
"args" : ["gulp", "processJS"], | |
"problemMatcher": "$jshint" | |
}, | |
{ | |
"taskName": "watch", | |
"suppressTaskName": true, | |
"args" : ["gulp", "watch"] | |
}, | |
{ | |
"taskName": "unittest", | |
"suppressTaskName": true, | |
"args" : ["dotnet", "test"], | |
"isTestCommand": true, | |
"showOutput": "always" | |
}, | |
{ | |
"taskName": "dotnet version", | |
"suppressTaskName": true, | |
"args" : ["dotnet", "--version"], | |
"showOutput": "always" | |
} | |
] | |
} |
Can you consider adding 'run' task to this list?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following command in VS Code is marked as deprecated.

"isTestCommand": true,