This project is read-only.

Can I disable copying node_modules folder to obj folder?

Aug 14, 2014 at 4:06 PM
I am hitting the annoying "The specified path, file name, or both are too long" issue and the reason appears to be due to a particular package being copied to the obj directory.

Is there any way, without manually changing the .targets file, we can disable this?
Aug 14, 2014 at 5:57 PM
We're working on avoiding this step completely for projects that don't need it (the only real reason for it is publish support - the existing publish pipeline for web projects requires an intermediate directory) - this is

In the meantime, you can suppress this in your .njsproj file by overriding the CoreCompile target to do nothing. Just add this right after it imports Microsoft.NodejsTools.targets:
  <Target Name="CoreCompile"/>
Marked as answer by RickWinter on 8/14/2014 at 10:04 AM
Aug 15, 2014 at 8:55 AM
Brilliant, this was exactly what I was after.