Having moved from bower to npm in an ASP.Net Core MVC project that is under TFVC source control I now have an additional solution appearing in Team Explorer in Visual Studio 2017 that is in my node_modules folder:
.\node_modules\node-sass\src\libsass\win\libsass.sln
How can I stop this solution appearing in Team Explorer? node_modules is already in my .tfignore file and that folder/solution is not in source control.
This can be done by simply hiding the node_modules folder.
I saw this as a side-effect when I was following instructions here, hiding the folder reduces the load times and memory footprint for Visual Studio as it doesn't try and preparse all the modules.
As an alternative and a lighter touch @kakusan pointed out that only the solution file needs to be hidden. Be aware that this change may not be kept if NPM for some reason replaces the file.
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