From f427945115fc43591bd01b26bd315caf23d12947 Mon Sep 17 00:00:00 2001 From: Vatsan Madhavan Date: Thu, 25 Jul 2019 14:47:30 -0700 Subject: [PATCH 1/2] When producing ReadyToRun images, the ILLinker is configured to skip C++/CLI images. See mono/linker#651 and mono/linker#658. In turn, this results in a failure of dependencies of such assemblies (like System.Diagnostics.Debug.dll, which is required by DirectWriteForwarder.dll) from being identified and included in the ReadyToRun images. These linker hints tell ILLinker to include certain dependencies, which we know to be required by DirectWriteForwarder and System.Printing respectively. --- .../src/PresentationCore/ILLinkTrim.xml | 5 ++++ .../PresentationCore/PresentationCore.csproj | 23 +++++++++++++++++++ .../src/ReachFramework/ILLinkTrim.xml | 5 ++++ .../src/ReachFramework/ReachFramework.csproj | 23 +++++++++++++++++++ 4 files changed, 56 insertions(+) create mode 100644 src/Microsoft.DotNet.Wpf/src/PresentationCore/ILLinkTrim.xml create mode 100644 src/Microsoft.DotNet.Wpf/src/ReachFramework/ILLinkTrim.xml diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/ILLinkTrim.xml b/src/Microsoft.DotNet.Wpf/src/PresentationCore/ILLinkTrim.xml new file mode 100644 index 00000000000..7bf3371bd99 --- /dev/null +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/ILLinkTrim.xml @@ -0,0 +1,5 @@ + + + + diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/PresentationCore.csproj b/src/Microsoft.DotNet.Wpf/src/PresentationCore/PresentationCore.csproj index 1e14b2e0eb7..c01546b7fe3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/PresentationCore.csproj +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/PresentationCore.csproj @@ -1448,6 +1448,29 @@ false ColorProfiles + + + + false + $(AssemblyName).xml + + + diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/ReachFramework.csproj b/src/Microsoft.DotNet.Wpf/src/ReachFramework/ReachFramework.csproj index c56f253f181..c2301de6145 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/ReachFramework.csproj +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/ReachFramework.csproj @@ -21,6 +21,29 @@ System.Printing.resources System.Printing.resources + + + + false + $(AssemblyName).xml + From 78be6d01ca468a6d137af0681859890544210987 Mon Sep 17 00:00:00 2001 From: Vatsan Madhavan Date: Thu, 25 Jul 2019 16:57:18 -0700 Subject: [PATCH 2/2] Add netstandard and mscorlib to the list of dependencies --- src/Microsoft.DotNet.Wpf/src/PresentationCore/ILLinkTrim.xml | 2 ++ src/Microsoft.DotNet.Wpf/src/ReachFramework/ILLinkTrim.xml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/ILLinkTrim.xml b/src/Microsoft.DotNet.Wpf/src/PresentationCore/ILLinkTrim.xml index 7bf3371bd99..a488f34ce05 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/ILLinkTrim.xml +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/ILLinkTrim.xml @@ -2,4 +2,6 @@ + + diff --git a/src/Microsoft.DotNet.Wpf/src/ReachFramework/ILLinkTrim.xml b/src/Microsoft.DotNet.Wpf/src/ReachFramework/ILLinkTrim.xml index 31482de0011..b5957362218 100644 --- a/src/Microsoft.DotNet.Wpf/src/ReachFramework/ILLinkTrim.xml +++ b/src/Microsoft.DotNet.Wpf/src/ReachFramework/ILLinkTrim.xml @@ -2,4 +2,6 @@ + +