Skip to content

Instantly share code, notes, and snippets.

@solrevdev
Created August 15, 2017 11:49
Show Gist options
  • Save solrevdev/7bab3c2cf09d2f036aa41f8fc3d0669e to your computer and use it in GitHub Desktop.
Save solrevdev/7bab3c2cf09d2f036aa41f8fc3d0669e to your computer and use it in GitHub Desktop.
vscode tasks to run and watch .net core apps
// Microsoft.DotNet.Watcher.Tools
{
"version": "0.1.0",
"command": "dotnet",
"isShellCommand": true,
"args": [],
"tasks": [
{
"taskName": "build",
"args": [
"${workspaceRoot}/web/web.csproj"
],
"isBuildCommand": true,
"problemMatcher": "$msCompile"
},
{
"taskName": "watch",
"suppressTaskName": true,
"options": {
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"cwd": "${workspaceRoot}/web"
},
"command": "dotnet",
"args": [
"watch",
"run"
]
},
{
"taskName": "restore",
"suppressTaskName": true,
"command": "dotnet",
"args": [
"restore"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment