Skip to content

Commit 8de059f

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 Likely, I will need to add `AssemblyMetadataAttribute` for `Java.Interop.dll`, before this is fully working.
1 parent af7f7f5 commit 8de059f

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-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/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)