Skip to content

Instantly share code, notes, and snippets.

@guardrex
Last active April 29, 2019 10:54
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guardrex/19868ad5dc0a8c5f9473 to your computer and use it in GitHub Desktop.
Save guardrex/19868ad5dc0a8c5f9473 to your computer and use it in GitHub Desktop.
VS Code Tasks file to work with dotnet cli
{
"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"
}
]
}
@carlowahlstedt
Copy link

The following command in VS Code is marked as deprecated.
"isTestCommand": true,
screen shot 2018-04-25 at 8 42 10 am

@lharland
Copy link

lharland commented Jun 1, 2018

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