diff options
author | Jeremy Koritzinsky <jekoritz@microsoft.com> | 2022-06-25 04:46:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-25 04:46:42 +0300 |
commit | ffa0fff0f31b7d869734e8032313188df523ecca (patch) | |
tree | 0c24e76e1ed80b1e1cf8d599bf34d7429f6bc529 /eng | |
parent | 12a1f413653cd1924970c01cb3bbb29e3cafbd10 (diff) |
Custom marshallers v2 usage (#71238)
* Enable using the new generator attributes before the new API shapes are approved
* Disable the diagnostic that verifies that a marshaller type has the v1 attribute.
* Convert some custom type marshallers to the v2 design.
Convert as many of the marshallers as possible to their correct representation with the currently implemented feature set.
This PR does not convert marshallers that can be represented with the new design but need more features to be accurately represented.
Diffstat (limited to 'eng')
-rw-r--r-- | eng/generators.targets | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/eng/generators.targets b/eng/generators.targets index c123ad66387..92c76103b17 100644 --- a/eng/generators.targets +++ b/eng/generators.targets @@ -67,6 +67,11 @@ <PropertyGroup> <LibraryImportGenerator_UseMarshalType>true</LibraryImportGenerator_UseMarshalType> </PropertyGroup> + + <ItemGroup Condition="'$(NetCoreAppCurrentTargetFrameworkMoniker)' == '$(TargetFrameworkMoniker)' and '$(IncludeLibraryImportGeneratorSources)' != 'false'"> + <Compile Include="$(LibrariesProjectRoot)System.Runtime.InteropServices/tests/Ancillary.Interop/CustomTypeMarshallersAttributeBase.cs" /> + <Compile Include="$(LibrariesProjectRoot)System.Runtime.InteropServices/tests/Ancillary.Interop/ManagedToUnmanagedMarshallersAttribute.cs" /> + </ItemGroup> </Target> <Import Project="$(LibrariesProjectRoot)System.Runtime.InteropServices\gen\LibraryImportGenerator\Microsoft.Interop.LibraryImportGenerator.props" /> |