Skip to content

Running Node.js from .NET using .NET Core #92

@JohnnyFun

Description

@JohnnyFun

Hi,

I've tried running the following example in .net core 2.0, 2.1, 2.2, and 3.0, but all of them can't seem to recognize the Edgejs dll. It works perfectly in .net framework 4.7.2, with exact same code and nuget reference:

using System;
using System.Threading.Tasks;
using EdgeJs;

class Program
{
    public static async Task Start()
    {
        var func = Edge.Func(@"
            return function (data, callback) {
                callback(null, 'Node.js welcomes ' + data);
            }
        ");

        Console.WriteLine(await func(".NET"));
    }

    static void Main(string[] args)
    {
        Start().Wait();
    }
}

Am I missing something simple, or does edge-js not support .net core calling nodejs from c#?

Any insight would be appreciated. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions