How to specify additional include directories for msbuild.exe

爱⌒轻易说出口 提交于 2019-12-22 07:02:55

问题


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!


回答1:


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



来源:https://stackoverflow.com/questions/22360799/how-to-specify-additional-include-directories-for-msbuild-exe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!