Skip to content

Remove "Is supported on this TFM" logic from marshalling generators and instead handle it during factory construction - #91768

Merged
jkoritzinsky merged 6 commits into
dotnet:mainfrom
jkoritzinsky:change-tfm-support-model-interop-gen
Sep 19, 2023
Merged

Remove "Is supported on this TFM" logic from marshalling generators and instead handle it during factory construction#91768
jkoritzinsky merged 6 commits into
dotnet:mainfrom
jkoritzinsky:change-tfm-support-model-interop-gen

Conversation

@jkoritzinsky

Copy link
Copy Markdown
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

ghost commented Sep 7, 2023

Copy link
Copy Markdown

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 and others added 3 commits September 11, 2023 11:00
…Generator/LibraryImportGenerator.cs

Co-authored-by: Jackson Schuster <36744439+jtschuster@users.noreply.github.com>
@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

2 participants