Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Koritzinsky <jekoritz@microsoft.com>2022-06-25 04:46:42 +0300
committerGitHub <noreply@github.com>2022-06-25 04:46:42 +0300
commitffa0fff0f31b7d869734e8032313188df523ecca (patch)
tree0c24e76e1ed80b1e1cf8d599bf34d7429f6bc529 /eng/generators.targets
parent12a1f413653cd1924970c01cb3bbb29e3cafbd10 (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/generators.targets')
-rw-r--r--eng/generators.targets5
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" />