Skip to content

Commit df4c5e7

Browse files
[One .NET] specify AssemblyMetadataAttribute for IsTrimmable (#828)
Context: dotnet/android#5638 Context: dotnet/android#5879 Going forward in .NET 6, we shouldn't use the `%(IsTrimmable)` metadata anymore, but instead use the following C# attribute in each assembly for which linking/"trimming" is supported: [assembly: AssemblyMetadata ("IsTrimmable", "True")] Similar changes on the iOS side here: * dotnet/macios@289053b Add `AssemblyMetadataAttribute` to `Java.Interop.dll`.
1 parent f4e68b5 commit df4c5e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Java.Interop/Properties/AssemblyInfo.cs

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
[assembly: AssemblyProduct ("")]
1414
[assembly: AssemblyTrademark ("Microsoft Corporation")]
1515
[assembly: AssemblyVersion ("0.1.0.0")]
16+
[assembly: AssemblyMetadata ("IsTrimmable", "True")]
1617

1718
[assembly: InternalsVisibleTo (
1819
"Java.Interop.GenericMarshaler, PublicKey=" +

0 commit comments

Comments
 (0)