Skip to content

Conversation

@jkoritzinsky
Copy link
Member

The only generator that supports down-level is the LibraryImportGenerator, so remove this infrastructure from the base APIs and instead have LibraryImportGenerator create a different generator factory depending on the TFM.

Also, include #91765 as we would have had to separate out the legacy SafeHandle marshaller instantiation to a separate marshalling generator factory, but we don't use it anyway any more.

We don't build for .NET 6 or 7 in dotnet/runtime any more, so we don't need to include this marshalling logic.
…enerator factory.

Also, do a first step disabling the legacy SafeHandleMarshaller logic instead of making it work just to remove it.
@jkoritzinsky jkoritzinsky added area-System.Runtime.InteropServices source-generator Indicates an issue with a source generator feature labels Sep 7, 2023
@jkoritzinsky jkoritzinsky added this to the 9.0.0 milestone Sep 7, 2023
@ghost
Copy link

ghost commented Sep 7, 2023

Tagging subscribers to this area: @dotnet/interop-contrib
See info in area-owners.md if you want to be subscribed.

Issue Details

The only generator that supports down-level is the LibraryImportGenerator, so remove this infrastructure from the base APIs and instead have LibraryImportGenerator create a different generator factory depending on the TFM.

Also, include #91765 as we would have had to separate out the legacy SafeHandle marshaller instantiation to a separate marshalling generator factory, but we don't use it anyway any more.

Author: jkoritzinsky
Assignees: -
Labels:

area-System.Runtime.InteropServices, source-generator

Milestone: 9.0.0

@jkoritzinsky jkoritzinsky merged commit 9bd0e0d into dotnet:main Sep 19, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Oct 20, 2023
@jkoritzinsky jkoritzinsky deleted the change-tfm-support-model-interop-gen branch March 22, 2024 01:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Runtime.InteropServices source-generator Indicates an issue with a source generator feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants