You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to generate private method accessors using UnsafeAccessorAttribute when targetting at least dotnet8?
That would make it safe to use with NativeAOT and Trimming, as the accessed attributes are marked as used and not removed.
The text was updated successfully, but these errors were encountered:
Thank you for pointing this out! The UnsafeAccessorAttribute is indeed a great feature, and I would love to eliminate the reflection code. However, I plan to stick with .NET 6 until the end of the year, and I prefer not to complicate the code with conditional compilation directives (ifdefs).
Is there another way to address your issue? Are there possibilities for configuring the trimming, such as ignoring a specific class during the trimming process?
Would it be possible to generate private method accessors using UnsafeAccessorAttribute when targetting at least dotnet8?
That would make it safe to use with NativeAOT and Trimming, as the accessed attributes are marked as used and not removed.
The text was updated successfully, but these errors were encountered: