Questions tagged [task-runner-explorer]

Task Runner Explorer lets you run commands inside Visual Studio ...

Task Runner Explorer lets you run Grunt, Gulp, even DOS cmd scripts from within Visual Studio. These commands can be bound to triggers such as Before Build, After Build, Clean and Solution Open

First introduced as an extension for 2013, https://visualstudiogallery.msdn.microsoft.com/8e1b4368-4afb-467a-bc13-9650572db708, now a part of Visual Studio 2015, https://www.visualstudio.com/en-us/news/vs2015-vs.aspx

73 questions
101
votes
5 answers

Task Runner Explorer can't load tasks

I'm using VS2015 and Gulp. I open the Task Runner Explorer and hit refresh, and this shows up in the log: Failed to run "C:\Projects\Test\Gulpfile.js"... cmd.exe /c gulp --tasks-simple Error: `libsass` bindings not found in…
Josh M.
  • 23,573
  • 23
  • 96
  • 160
18
votes
3 answers

Cancel Build if Task Runner Explorer Task Fails

I am using visual studio task runner (2015) to run a Gulp task bound to before build. I have set it up so that when the gulp tasks fails it sends exit code 1 and at the end it says "Process terminated with code 1." however the build continues. This…
John
  • 27,040
  • 17
  • 82
  • 121
13
votes
2 answers

Gulp task failing when run from VS 2015 Task Runner explorer, but not from command prompt

I have some Gulp tasks to do the typical clean, build, release actions for a website. Nothing particularly unusual in my mind. (In fact it's very similar to Aurelia TypeScript skeleton.) Most of the team does front-end development using Gulp from a…
Jaans
  • 4,439
  • 4
  • 36
  • 47
11
votes
6 answers

How can I disable Task Runner Explorer in Visual Studio?

The Task Runner Explorer just throws errors for me in Visual Studio 2015 RC and I just want to disable it and run my gulp file from the command line like I always have. Is there a way to turn off the Task Runner Explorer?
Sean
  • 870
  • 11
  • 20
10
votes
3 answers

Fresh npm install of webpack.js is throwing Block-scope error

I'm new to Webpack, Visual Studio, and Task Runner, but these are what I have been told to install/use at work so I'm struggling through figuring out how to make it all work. I just used NPM to globally install a fresh copy of webpack and…
Steverino
  • 1,525
  • 3
  • 18
  • 34
8
votes
1 answer

Running gulp watch in task runner explorer by setting bindings to 'After Build' in Visual Studio 2015

I am trying to run gulp watch by setting bindings property of watch to 'After Build' in Task runner explorer. I tried to run application, during build it triggered my watch task from gulp and it's still running. But my application is not running in…
VR1256
  • 843
  • 2
  • 17
  • 32
7
votes
0 answers

Is it possible to run a gulp task from visual studio with arguments

I have a gulp task which accepts arguments using yargs. From the command line I do something like gulp scaffold:thing --name=someName --path=some/path-to/{thing}. I would like to be able to call this and prompt the user to input the needed…
matthewdaniel
  • 1,572
  • 2
  • 18
  • 32
7
votes
1 answer

Order of Events - MSBuild and Task Runner Bindings (Gulp)

I am using a TFS build project to build a Visual Studio 2015 project that contains a gulpfile for compiling SASS among other things. I am trying to understand the sequence of events using MSBuild Tasks and Task Runner bindings. It appears that…
ChoptimusPrime
  • 413
  • 7
  • 15
6
votes
1 answer

Task Runner Explorer not working

I have applied Gulp on my project made in VS2015 Community. But when I use the Task Runner Explorer, a dialog box appears saying "Exception has been thrown by the target of an invocation." I tried doing the (PATH) thing in the "Configure External…
evilom
  • 555
  • 6
  • 18
6
votes
1 answer

How to configure "npm install" in Task Runner Explorer VS2015

I have a problem with the node_modules folder created by npm. The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. A solution…
bvanm
  • 103
  • 6
5
votes
0 answers

Visual Studio node.js build settings

I am trying to setup a development environment using Visual Studio for an Angular 2 typescript project, using a visual studio node.js project. If I use the command line, everything works fine, my typescript is compiled, and my app runs like it…
5
votes
1 answer

How can I utilize Gulp.watch in Visual Studio 2015?

I want to apply a Gulp watcher to my LESS files so Gulp will create css files whenever a LESS file gets saved. How can I do this? It doesn't seem to be correct/sufficient to write something like this: var gulp = require("gulp"); var moreLess =…
AxD
  • 1,841
  • 1
  • 19
  • 32
4
votes
0 answers

Gulp - list all files as a separated tasks

I want to list all the .ts files from a partucar folder, and present them as an individual tasks using gulp. So, i have a folder which have those files: /src - app.ts - items.ts Right now I'm using this command to build all those files and send…
ToTa
  • 2,986
  • 2
  • 15
  • 37
4
votes
1 answer

Have npm watch files in background to enable integration with Visual Studio Task Runner

I am trying to have npm watch for file changes in my client side code. I can have it work from the command line ok but I'd really like it to work from Visual Studio task runner. my package.json looks something like this: ... "watch": { "compile":…
Stewart_R
  • 11,596
  • 6
  • 45
  • 84
4
votes
2 answers

visual studio (2015) Task Runner "Project Open" bound task is launched twice when open solution

I have a "watch" task that bound it to "project open" binding . but when open the solution , it is run twice ... my solution includes these projects: Controllers EFRepository Infrastructure Model ReportLibrary WebUI Design and my watch task…
sanh
  • 120
  • 11
1
2 3 4 5