kevicency / MSBuild.NodeTools

Run various node tools as a MSBuild dependency
BSD 3-Clause "New" or "Revised" License
64 stars 14 forks source link

Looking for grunt in AppData\Roaming\npm instead of in the local node_modules folder #20

Closed janaagaard75 closed 9 years ago

janaagaard75 commented 9 years ago

This line in my csproj file gives me a build error because It's looking for Grunt in the %USERPROFILE%\AppData\Roaming\npm folder. I am using MSBuild.Npm to make it install all necessary Node modules in a node_modules local to my Visual Studio project, so I don't need to have grunt installed globally.

<Import Project="..\packages\MSBuild.Grunt.0.4.4\build\MSBuild.Grunt.props" Condition="Exists('..\packages\MSBuild.Grunt.0.4.4\build\MSBuild.Grunt.props')" />

I guess the line above doesn't take into account that I might be installing my packages locally.

kevicency commented 9 years ago

You need to set the LocalNodeModulePath (see README) if you use a local gulp or grunt installation