I am trying to publish a pure client project - that is - plain html/js/css files, that during dev being managed by nodejs.
Node creates a very deep path (longer than 260 chars) - inside node_modules/...
Although I have excluded node_modules completly:
<ExcludeFoldersFromDeployment>test;node_modules</ExcludeFoldersFromDeployment>
It still throws an exception when I try publishing:
Error 1 The "CollectFilesinFolder" task failed unexpectedly.
System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified
file name must be less than 260 characters, and the directory name must be less than 248 characters.
at System.IO.PathHelper.GetFullPathName()
I know it is specifically the node_modules, because manually removing it solves the issue.
Other then that, excluding works fine (the 'test' folder is being excluded).
How do I keep these files from being considered for the publish?