microsoft / node-api-dotnet

Advanced interoperability between .NET and JavaScript in the same process.
MIT License
426 stars 49 forks source link

How to call JS from .NET? #313

Open 526677804 opened 2 days ago

526677804 commented 2 days ago

1.Is the framework already supported, and to what extent? Is there any relevant documentation I can refer to?

2.the winui-fluid example code.libnode.dll How to get it?


Hello, In my project, I need to call JS from .NET, but there is no complete path to refer to. I want to confirm the above two questions first.

jasongin commented 1 day ago

Embedding Node.js in a .NET application is still experimental, and there is not very good documentation for it yet, only the section in the README, and the example code linked above. I am working on writing more docs.

libnode is not published, but you can build your own. See https://github.com/microsoft/node-api-dotnet/issues/107#issuecomment-2057928923