Skip to content

Productize LibraryImportGenerator for use outside of runtime #60595

Closed
@AaronRobinsonMSFT

Description

@AaronRobinsonMSFT

Issues to address/consider after ship-ready work (#60212):

APIs:

Reconciliation of blittable/unmanaged:

Custom marshallers:

Release:

Fixer:

A code fixer should be provided to help with the conversion to using generated p/invokes via the new attribute. We may not support all options based on added complexity versus usage.

  • Basic conversion to new attribute where all options specified on DllImport are supported by source generator
  • PreserveSig: change managed signature to return int and have an out param if necessary, add custom marshaller for return value to throw if necessary, update callers,
  • ExactSpelling: different fix option to append suffix on EntryPoint property
  • Add stubbed out implementation for custom marshallers

Issues:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions