Skip to content

Commit 09295de

Browse files
[One .NET] use AssemblyMetadataAttribute for IsTrimmable
Fixes: #5638 Going forward in .NET 6, we shouldn't use the `%(IsTrimmable)` metadata anymore, but use the following C# attribute in each assembly instead: [assembly: AssemblyMetadata ("IsTrimmable", "True")] Similar changes on the iOS side here: dotnet/macios@289053b Bump to xamarin/java.interop/main@df4c5e7c Changes: dotnet/java-interop@f9faaab...df4c5e7 This adds `AssemblyMetadataAttribute` for `Java.Interop.dll`.
1 parent 0e74266 commit 09295de

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

build-tools/create-packs/Microsoft.Android.Sdk.proj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
111111
RuntimePackNamePatterns="Microsoft.Android.Runtime.**RID**"
112112
RuntimePackRuntimeIdentifiers="@(_AndroidNETAppRuntimePackRids, '%3B')"
113113
Profile="Android"
114-
IsTrimmable="true"
115114
/>
116115
</ItemGroup>
117116
</Project>

external/Java.Interop

src/Mono.Android.Export/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
[assembly: AssemblyCopyright ("Xamarin Inc.")]
99
[assembly: AssemblyTrademark ("Xamarin")]
1010
[assembly: AssemblyCulture ("")]
11+
[assembly: AssemblyMetadata ("IsTrimmable", "True")]
1112

1213
// The following attributes are used to specify the signing key for the assembly,
1314
// if desired. See the Mono documentation for more information about signing.

src/Mono.Android/Properties/AssemblyInfo.cs.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ using System.Runtime.CompilerServices;
1616
// FIXME: Probably need to add Copyright 2009-2011 Novell Inc.
1717
// [assembly: AssemblyCopyright ("Copyright 2011-2014 Xamarin Inc.")]
1818
[assembly: AssemblyCompany ("Microsoft Corporation")]
19+
[assembly: AssemblyMetadata ("IsTrimmable", "True")]
1920

2021
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Drawing.Color))]
2122
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Drawing.ColorConverter))]

0 commit comments

Comments
 (0)