1

I have task which generates CSS from LESS. It worked perfectly but I found out that it doesn't work now. I found some questions here but they weren't helpful for me. Could you tell me what can be the problem? enter image description here

Badri Neparidze
  • 309
  • 1
  • 3
  • 10

2 Answers2

2

The problem was that "node_modules" was missing in my project. I added it and task runner worked correctly.

Badri Neparidze
  • 309
  • 1
  • 3
  • 10
  • You don't need `node_modules` in your `.csproj` project and I would highly advice against it. For me just unloading/reloading the project was enough – CervEd May 08 '20 at 08:46
0

Visual Studio's task runner will not recognize gulp tasks unless your project is not actually a project but a website.

Right click your solution -> Add -> New Website ...

A word of caution

Make sure your source control does not pick up your node packages automatically or you are in for some major headakes

Wilmer SH
  • 1,417
  • 12
  • 20