Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Task Runner Configuration Missing in Visual Studio 2017

I just installed Visual Studio 2017 and opened a solution I had been working in with Visual Studio 2015. It seems like everything works great except that the task runner explorer in VS 2017 is not detecting the package.json file in one of my projects so it is giving me the message "No task runner configurations were found." My package.json is in the same folder as my solution file and I added it into the proper project by creating a file link. VS 2015 had no problem with this and I'm not sure why VS 2017 does or how to fix it.

like image 306
Chris Avatar asked Mar 08 '17 15:03

Chris


People also ask

How to open Task Runner Explorer Visual Studio 2017?

The Task Runner Explorer can be found via the menu View > Other Windows > Task Runner Explorer. This is how you find it or you can use the search window in the top right and search for Task Runner and it will show up.

How do I get a task runner in Visual Studio?

If you have never used or opened the built in task runner it is simple, press Alt + Shift + Backspace or select it from the other windows list from the View menu. You should see the task runner window at the bottom of Visual Studio.

What is task runner in Visual Studio?

The Task Runner Explorer shows a list of available tasks and executing them is as simple as a click of the mouse. You can even bind any task to specific events that occur in Visual Studio such as Build, Clean and Project Open.

How do I run a Webpack in Visual Studio?

Right click build -> Bindings -> Before Build — Visual Studio will run this task before each build. Remember this npm script runs Webpack for production and will optimize the CSS file. Right click dev -> Bindings -> Project Open — Visual Studio will run this task when you open the project.


2 Answers

I found the NPM Task Runner extension in the Visual Studio Marketplace that fixed my problem. After installing it, the package.json file showed up in Task Runner Explorer.

Also, don't forget to set your system path to be the top priority for the External Web Tools by going into Options > External Web Tools and moving $(PATH) up the list. My npm scripts were failing until I did this as well.

like image 161
Chris Avatar answered Oct 05 '22 07:10

Chris


The Task Runner Explorer can be found via the menu View > Other Windows > Task Runner Explorer.

This is how you find it or you can use the search window in the top right and search for Task Runner and it will show up.

like image 41
Merlin8771 Avatar answered Oct 05 '22 07:10

Merlin8771