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.
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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With