Description
I've been trying to figure this out for days with different approaches, but I can't find a way for it to work.
var runtime = new NodejsPlatform("C:\\Program Files\\nodejs\\node.exe");
This line to use NodeJS in the C# application fails no matter what I do. Initially, I was trying to connect it to Electron binary, but when it failed I figured they had changed something and that is why. I tried using the official Windows binary - but still to no avail. I even got Node to compile as a shared library to a .dll
file. They all result in an error for lacking napi_create_platform
. dumpbin
shows a bunch of napi_
prefixed functions, but nothing with platform or engine in the name.
I even went into a digital archeologist mode and went through some of Node commit history, but I can't find the napi_create_platform
function that would be a connection point to Node. There are only C++ classes. What am I missing?