-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Crash after linking code using DataContractSerializer #41525
Labels
Milestone
Comments
Dotnet-GitSync-Bot
added
area-Serialization
untriaged
New issue has not been triaged by the area owner
labels
Aug 28, 2020
marek-safar
added
the
linkable-framework
Issues associated with delivering a linker friendly framework
label
Aug 28, 2020
/cc @eerhardt |
Similar to #41389. In order to make DataContractSerializer serialization work with the ILLinker, we will probably need to address dotnet/linker#1087. |
eerhardt
added
blocked
Issue/PR is blocked on something - see comments
and removed
untriaged
New issue has not been triaged by the area owner
labels
Aug 28, 2020
I verified that fixing #42754 will also fix this issue. Applying the fix to the above repro project causes it to successfully print out |
eerhardt
added a commit
to eerhardt/runtime
that referenced
this issue
Sep 28, 2020
DataContractSerialization has some Reflection "shim" methods that the ILLinker can't see through. This causes critical methods to be trimmed and applications to fail. These methods were put in place in .NET Core 1.0 when the full Reflection API wasn't available. The fix is to remove these "shim" Reflection APIs and use Reflection directly. Fix dotnet#41525 Fix dotnet#42754
eerhardt
added a commit
that referenced
this issue
Sep 30, 2020
DataContractSerialization has some Reflection "shim" methods that the ILLinker can't see through. This causes critical methods to be trimmed and applications to fail. These methods were put in place in .NET Core 1.0 when the full Reflection API wasn't available. The fix is to remove these "shim" Reflection APIs and use Reflection directly. Fix #41525 Fix #42754
jkotas
pushed a commit
that referenced
this issue
Sep 30, 2020
DataContractSerialization has some Reflection "shim" methods that the ILLinker can't see through. This causes critical methods to be trimmed and applications to fail. These methods were put in place in .NET Core 1.0 when the full Reflection API wasn't available. The fix is to remove these "shim" Reflection APIs and use Reflection directly. Fix #41525 Fix #42754
danmoseley
pushed a commit
that referenced
this issue
Oct 1, 2020
…link (#42911) * DataContractSerialization doesn't work with TrimMode - link DataContractSerialization has some Reflection "shim" methods that the ILLinker can't see through. This causes critical methods to be trimmed and applications to fail. These methods were put in place in .NET Core 1.0 when the full Reflection API wasn't available. The fix is to remove these "shim" Reflection APIs and use Reflection directly. Fix #41525 Fix #42754 * add copyright header Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com>
61 tasks
ghost
locked as resolved and limited conversation to collaborators
Dec 7, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Issue moved from dotnet/linker#1460
From @rolfbjarne on Friday, August 28, 2020 2:06:52 PM
Test case: linkertestcase-e6b5538.zip
To repro run
test.sh
:This is the C# code:
The text was updated successfully, but these errors were encountered: