Skip to content

[One .NET] default $(SuppressTrimAnalysisWarnings) to true#5781

Merged
jonathanpeppers merged 1 commit intodotnet:mainfrom
jonathanpeppers:suppresstrimanalysiswarnings
Mar 26, 2021
Merged

[One .NET] default $(SuppressTrimAnalysisWarnings) to true#5781
jonathanpeppers merged 1 commit intodotnet:mainfrom
jonathanpeppers:suppresstrimanalysiswarnings

Conversation

@jonathanpeppers
Copy link
Copy Markdown
Member

Fixes: #5751

After bumping to .NET 6 Preview 3, we get hundreds of ILLINK warnings.
This is because of:

dotnet/sdk#16327

We need to default $(SuppressTrimAnalysisWarnings) to ignore these
warnings for now.

We should continue to use TrimMode=link, as that is the behavior
Xamarin developers get today.

Fixes: dotnet#5751

After bumping to .NET 6 Preview 3, we get hundreds of ILLINK warnings.
This is because of:

dotnet/sdk#16327

We need to default `$(SuppressTrimAnalysisWarnings)` to ignore these
warnings for now.

We should continue to use `TrimMode=link`, as that is the behavior
Xamarin developers get today.
@jonathanpeppers jonathanpeppers merged commit 3137b6d into dotnet:main Mar 26, 2021
@jonathanpeppers jonathanpeppers deleted the suppresstrimanalysiswarnings branch March 26, 2021 03:28
@marek-safar
Copy link
Copy Markdown
Contributor

We should continue to use TrimMode=link, as that is the behavior Xamarin developers get today.

As explained in the issue that code is now dead because it's exactly what sdk does for everyone (see https://github.com/dotnet/sdk/blob/main/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.ILLink.targets#L193)

@jonathanpeppers
Copy link
Copy Markdown
Member Author

As explained in the issue that code is now dead because

I see now @marek-safar, thanks. I'll remove TrimMode=link when I fix: #5856

@github-actions github-actions Bot locked and limited conversation to collaborators Jan 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update linker defaults for .NET 6

3 participants