From f181249b7a1abf96ee790b7b02790d39ac95c13b Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Fri, 13 Oct 2017 03:23:39 +0200 Subject: [PATCH] [Xamarin.Android.Bcl-Tests] Add LinkerDescription.xml (#934) Some of the tests use reflection to access BCL API. Parts of the needed API is linked away by the linker. The link description file makes sure the needed parts stay in the mscorlib and thus the tests don't fail. This fixes remaining issues [^1] in `Xamarin.Android.Bcl-Tests` in Release configuration and the test should run without failures when linked (LinkSdkOnly). [^1]: After merging https://github.com/xamarin/xamarin-android/pull/933 --- .../Resources/LinkerDescription.xml | 49 +++++++++++++++++++ .../Xamarin.Android.Bcl-Tests.csproj | 3 ++ 2 files changed, 52 insertions(+) create mode 100644 tests/Xamarin.Android.Bcl-Tests/Resources/LinkerDescription.xml diff --git a/tests/Xamarin.Android.Bcl-Tests/Resources/LinkerDescription.xml b/tests/Xamarin.Android.Bcl-Tests/Resources/LinkerDescription.xml new file mode 100644 index 000000000..1a8f829d9 --- /dev/null +++ b/tests/Xamarin.Android.Bcl-Tests/Resources/LinkerDescription.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/Xamarin.Android.Bcl-Tests/Xamarin.Android.Bcl-Tests.csproj b/tests/Xamarin.Android.Bcl-Tests/Xamarin.Android.Bcl-Tests.csproj index 8b67e1157..937b6482e 100644 --- a/tests/Xamarin.Android.Bcl-Tests/Xamarin.Android.Bcl-Tests.csproj +++ b/tests/Xamarin.Android.Bcl-Tests/Xamarin.Android.Bcl-Tests.csproj @@ -89,6 +89,9 @@ + + +