Obsolete PreserveAttribute
Open
dotnet
iOS
macOS
- Dominant language
- C#
- Stars
- 2.9k
- Forks
- 576
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 123
Description
The attribute is not needed in .NET6 and can interfere with official .NET linker attributes. The linker is able to recognize and mark reflection patterns automatically and for custom scenarios better attribute is supported https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.codeanalysis.dynamicdependencyattribute. The assembly-level attribute handling is not needed either as that's the default .net6 behavior.
We'll need to update the generator to not generate the Preserve attribute first: https://github.com/xamarin/xamarin-macios/issues/19524
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.