microsoft / microsoft/node-api-dotnet

Support marshalling C# `dynamic` values

Open
#307 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

marshalling
Dominant language
C#
Stars
783
Forks
80
PR merge metrics
No merged PRs in 30d

Description

node-api-dotnet version: 0.7.*
dotnet sdk: .net 6.0
nodejs version: 18.18.1
I tried to excute C# dll methods which is task method , the method parameter and return value's type is dynamic.
I got empty object when i used async/await in nodejs, could someone help me about this problem, thks.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported case with node-api-dotnet 0.7.*, .NET 6.0, and Node.js 18.18.1: call a C# DLL task method whose parameter and return types are dynamic, using async/await. Trace how the dynamic result is marshalled and define done as returning the expected object rather than an empty object.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, nodejs
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.