-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
DataContractSerialization is not linker friendly #36154
Comments
The code is too intricate to be trimmed safely. |
We should annotate the API with |
@eerhardt are you going to do this work? Can you please assign a milestone to this issue? |
I'm not sure who will actually do the work. But there will be an effort to get the libraries annotated in 6.0, so I moved it to there. |
See this comment:
runtime/src/libraries/System.Private.DataContractSerialization/src/System.Private.DataContractSerialization.csproj
Lines 10 to 11 in 890fab0
This setting only applies to running the linker during the
dotnet/runtime
build. It doesn't affect when a user's application uses this library and is trimmed.If there is too much private reflection for this assembly to be trimmed, it isn't going to work well when an application using it is trimmed. We should ensure DataContractSerialization can be used safely by linked applications.
The text was updated successfully, but these errors were encountered: