Question

I am attempting to install the nodejs module ibm_db. The issue I am having is that in order to install this module node-gyp needs to build it using msbuild, but it won't detect some header files I have installed.

How do I add the directory of my additional header files to some path so hatt msbuild.exe will find them when trying to compile any project? On linux I simply set cpath= and everything build just fine.

Thanks!

Was it helpful?

Solution

MSBuild exposes special properties for resolving references in build time. You can set AssemblySearchPaths and AdditionalLibPaths.

E.g. msbuild your.sln /p:AssemblySearchPaths="C:\Dev\Lib\Foo;C:\Dev\Lib\Bar;"

See Common MSBuild Project Properties

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top