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
{{ message }}
This repository has been archived by the owner on Feb 23, 2025. It is now read-only.
As of .Net 6 assemblies can be annotated with the IsTrimmable property. This will enable warnings for publish as trimmed issues. Once all of these issues are addressed or annotated as RequireUnreferencedCode the downstream consumer can publish their final executable with all unused code trimmed out.
Just to note that this issue, when building for net8, meant I got the error:
Reflection-based serialization has been disabled for this application
when using the NoValidationIdentityTokenValidator. This is because the trimmed publish defaults for System.Text.Json in net8 have changed to fail on attempts to use reflection serialisation.
I had to manually copy the patched code from #391; eagerly awaiting the release of the changes in that PR.
As of .Net 6 assemblies can be annotated with the IsTrimmable property. This will enable warnings for publish as trimmed issues. Once all of these issues are addressed or annotated as RequireUnreferencedCode the downstream consumer can publish their final executable with all unused code trimmed out.
https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/prepare-libraries-for-trimming
The text was updated successfully, but these errors were encountered: