Sitelet https://github.com/nodejs/node/issues/2953
Skip to content

Can Node.js be compiled as a DLL rather than a .exe  #2953

Description

@gesslerpd

Is there an existing .dll file for node that will allow node to be used within the same process space as a C#/.NET application. If not is there anyway to build this .dll easily?

Activity

  1. added
    questionIssues asking questions about Node.js.
    buildIssues and PRs related to Node.js builds or CI infrastructure.
    on Sep 18, 2015
  2. mscdex commented on Sep 18, 2015

    @mscdex
    Contributor
  3. Fishrock123 commented on Sep 18, 2015

    @Fishrock123
    Contributor

    Related: #2021 & #556

  4. bnoordhuis commented on Sep 19, 2015

    @bnoordhuis
    Member

    There is no easy way to build a .dll right now. I'd start with setting node_target_type to 'shared_library' in node.gyp but that's probably not the only knob you have to adjust. You'll find out quick enough when you start building.

  5. mathiask88 commented on Sep 20, 2015

    @mathiask88
    Contributor

    I think atom/electron comes with a node.dll. Short search gave me this atom/node@71ace5e
    Maybe this will help. Don't know much about this topic.
    Edit : Here is a full commit list for patches applied on 4.1.0 by atom https://github.com/atom/node/commits/atom I think there will be more interesting commits. Or you can just download the prebuild dll from atom if you are ok with all these changes.

  6. Fishrock123 commented on Sep 20, 2015

    @Fishrock123
    Contributor

    Cc @zcbenz -- any advice? Anything that could be upstreamed to us?

  7. zcbenz commented on Sep 21, 2015

    @zcbenz
    Contributor

    Cc @zcbenz -- any advice? Anything that could be upstreamed to us?

    I'm still trying to figure out a decent and flexible interface of embedding Node.js to other applications, haven't got a good idea yet.

    For op's question, I think setting node_target_type to shared_library is enough.

  8. Fishrock123 commented on Oct 20, 2015

    @Fishrock123
    Contributor

    @gesslerpd any update? did @zcbenz's suggestion work?

  9. gesslerpd commented on Dec 7, 2015

    @gesslerpd
    Author

    Big thanks to you all for the help! I was able to find the node.dll which is included with atom/electron builds. Suggested by @mathiask88

  10. AnkitSource commented on Apr 25, 2018

    @AnkitSource

    @gesslerpd would you please suggest how you actually get the .dll? I am confused!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues and PRs related to Node.js builds or CI infrastructure.feature requestIssues requesting new Node.js features.questionIssues asking questions about Node.js.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions