dotnet / dotnet/samples

What are some examples of tools that generate marshalling code?

Open
#5,751 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
3.7k
Forks
5.1k
Avg merge
9h 11m
Merged PRs (30d)
1

Description

**Issue description**

[This comment](https://github.com/dotnet/samples/blob/b120cce50e1a38b362e543a44e0f9d42baec8fe6/core/nativeaot/NativeLibrary/Class1.cs#L20) says that marshalling code for a native library would typically be generated by a tool in larger projects.

Well I have an existing set of C# classes for which I want to generate an AoT-compatible set of public methods. Do you have examples of tools that can generate such marshalling code for those classes?

**Target framework**

Check the .NET target framework(s) being used, and include the version number(s).

- [x] .NET Core 7

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.