Skip to content

.NET: Add support for producing a self-contained native framework/library #15217

@rolfbjarne

Description

@rolfbjarne

This is a meta/placeholder issue for tracking the interest in and the work required to produce a self-contained native framework or library in .NET.

In particular we're not committing to actually implementing this, no decision has been made yet.

There are several questions that would have to be answered and solutions designed before we can even think about starting to work on this.

Open questions:

  • Exactly what is exposed from managed code? Exposing only methods with the [UnmanagedCallersOnly] attribute would be the simplest, but it would also not enable some more complex scenarios (such as subclassing a managed class in Objective-C for instance).
  • What happens if an app wants to use two shared libraries, built with different versions of the SDK/Runtime/etc?
  • ...

Random thoughts:

  • It's probably best to create a framework (and not a dylib), because dylibs only work on macOS, while frameworks work everywhere.
  • We'd have to make sure it works with both MonoVM and CoreCLR.

Ref:

Metadata

Metadata

Assignees

No one assigned

    Labels

    dotnetAn issue or pull request related to .NET (6)featureA feature to be implementedonly-dotnetIssue or pull request that only affects .NETrequest-for-commentsThe issue is a suggested idea seeking feedback

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions