-
Notifications
You must be signed in to change notification settings - Fork 551
[One .NET] use AssemblyMetadataAttribute for IsTrimmable #5879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[One .NET] use AssemblyMetadataAttribute for IsTrimmable #5879
Conversation
b8eb4ea
to
8de059f
Compare
It appears that this change, causes many of the assemblies' sizes to increase:
@sbomer is that expected? This might be one reason why iOS is larger than Android right now, they have this change already: dotnet/macios@289053b |
Nope, that's definitely not expected. Any chance you could share the linker command-line or a binlog? |
No, this did not cause larger apps, nor any additional assemblies to be bundled. AFAICT it was a no op. FWIW our apps were already larger before that recent commit :| |
@sbomer here is the log from that failing test above: msbuild.zip Maybe the |
8de059f
to
8c1c87a
Compare
Ok, there is another |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
I think we're good here now, it was I'll need to land changes in java.interop first, then we can go about merging this. |
Context: dotnet/android#5638 Context: dotnet/android#5879 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 This adds `AssemblyMetadataAttribute` for `Java.Interop.dll`.
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`.
Fixes: dotnet#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`.
8c1c87a
to
09295de
Compare
The two test failures seem to be unrelated:
|
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`.
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:
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
forJava.Interop.dll
.