Visual Studio 2019 does not discover napi.h
unless I use relative paths while opening a npm project as a folder. The file is located in node_modules/node-addon-api/napi.h
. How can I force VS to find this header? Is there an Additional include directory
type option when opening a folder?
The header is automatically discovered on my laptop with the same version of VS2019 and the same environment path. I have nodejs
tools installed for Visual Studio.
I want to be able to do #include <napi.h>
and have the header discovered. At the moment I must do #include "../node_modules/node-addon-api/napi.h"