-
Notifications
You must be signed in to change notification settings - Fork 519
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
Don't suppress trim analysis warnings when linking all assemblies #11246
Labels
dotnet
An issue or pull request related to .NET (6)
enhancement
The issue or pull request is an enhancement
good first issue
This is a good first issue for someone to start working with our code
Milestone
Comments
/cc @spouliot |
spouliot
pushed a commit
to spouliot/xamarin-macios
that referenced
this issue
Apr 20, 2021
… tests note: link all should fail due to dotnet#11246
vs-mobiletools-engineering-service2
pushed a commit
to vs-mobiletools-engineering-service2/xamarin-macios
that referenced
this issue
Apr 22, 2021
… tests note: link all should fail due to dotnet#11246
rolfbjarne
added a commit
that referenced
this issue
Sep 27, 2024
We've implemented this for .NET 9. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
dotnet
An issue or pull request related to .NET (6)
enhancement
The issue or pull request is an enhancement
good first issue
This is a good first issue for someone to start working with our code
dotnet/sdk#16865 adds a property (available in preview4)
TrimmerDefaultAction
which can be set tolink
to enable "LinkAll" behavior. Consider not suppressing trim analysis warnings in this case to warn users about possible issues.This can be done by setting the following in some targets that are imported after the project file but before the .NET illink targets (so that it takes into account any user-set value for
TrimmerDefaultAction
):and removing the unconditional setting from here:
https://github.com/xamarin/xamarin-macios/blob/5e18eae0cabeef04e10f3c80d5d68a9ec3e7dab4/dotnet/targets/Xamarin.Shared.Sdk.props#L12
@jonathanpeppers @marek-safar
See also #10405.
The text was updated successfully, but these errors were encountered: