How to specify additional directories for msbuild.exe

I am trying to install the nodejs ibm_db module. The problem I am facing is that to install this module node -gyp needs to be created using msbuild, but it will not detect some header files that I installed.

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

Thank!

+4
source share
1 answer

MSBuild provides special properties for resolving links during build. You can install AssemblySearchPathsand AdditionalLibPaths.

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

See General Properties of the MSBuild Project

+1
source

Source: https://habr.com/ru/post/1531410/


All Articles