节点/边缘:替代node.exe.config

node / edge : alternative to node.exe.config

documentation for Edge.js 指出,为了让我的应用程序具有 .net 设置,我需要将它们放在 node.exe.config

How to: app.config

When running C# code within Node.js app, the app config file is node.exe.config and should be located right next to the node.exe file.

这会造成冲突,因为我在此框上有多个边缘应用程序 运行。有哪些替代方案?

您可以将 node.exe 放在每个项目的根目录中。然后每个项目可以有node.exe.config

顺便说一下,我建议为每个项目设置 node.exe,因为您可以为每个项目使用不同版本的 NodeJS 而不会发生冲突。 NodeJS 更新非常快,有时你想对一个项目进行一些更改,但可能会破坏其他项目的代码。