


# Problems with NPM Task Runner, Visual Studio and ASP.NET Core It is also possible to schedule the execution of the scripts by associating them to different operations of the project (we can associate several operations to each script): Before Build ( Before Build), After Build ( After Build), Clean ( Clean) or Project Open ( Project Open). It is possible to run the scripts from the explorer by double clicking on them or with the right button and the option Run ( Run).

We can access the Task Runner Explorer from the context menu by right-clicking on our package.json file. This will display both the default install and update npm scripts, as well as the custom scripts that we have defined in our package.json file. The first thing to do is to install the NPM Task Runner extension (opens new window). To achieve the automation of these tasks we can make use of our package.json file through the Visual Studio Task Runner Explorer ( Task Runner Explorer). # Using npm tasks and commands in Visual Studio (2022, 2019, 2017, 2015)Īs Visual Studio users we are used to some of the work being automated in the development environment, but sometimes we need to run npm tasks or commands in our project such as converting TypeScript to JavaScript.
