[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
This commit is contained in:
Radek Doulik 2017-10-13 03:23:39 +02:00 коммит произвёл Jonathan Pryor
Родитель 36843aefdf
Коммит f181249b7a
2 изменённых файлов: 52 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8" ?>
<linker>
<assembly fullname="mscorlib">
<type fullname="System.Security.Permissions.UIPermission">
<method name="System.Security.Permissions.IBuiltInPermission.GetTokenIndex"/>
</type>
<type fullname="System.Reflection.AssemblyProductAttribute">
<method name=".ctor"/>
</type>
<type fullname="System.Reflection.AssemblyCopyrightAttribute">
<method name=".ctor"/>
</type>
<type fullname="System.Reflection.AssemblyTrademarkAttribute">
<method name=".ctor"/>
</type>
<type fullname="System.Reflection.AssemblyVersionAttribute">
<method name=".ctor"/>
</type>
<type fullname="System.Reflection.AssemblyFileVersionAttribute">
<method name=".ctor"/>
</type>
<type fullname="System.Reflection.AssemblyInformationalVersionAttribute">
<method name=".ctor"/>
</type>
<type fullname="System.Reflection.AssemblyCultureAttribute">
<method name=".ctor"/>
</type>
<type fullname="System.Reflection.AssemblyAlgorithmIdAttribute">
<method name=".ctor"/>
</type>
<type fullname="System.Reflection.AssemblyFlagsAttribute">
<method name=".ctor"/>
</type>
<type fullname="System.Reflection.AssemblyDelaySignAttribute">
<method name=".ctor"/>
</type>
<type fullname="System.Reflection.AssemblyKeyNameAttribute">
<method name=".ctor"/>
</type>
<type fullname="System.Runtime.CompilerServices.MethodImplAttribute">
<method name=".ctor"/>
</type>
<type fullname="System.Runtime.InteropServices.DllImportAttribute">
<method name=".ctor"/>
</type>
<type fullname="System.ConsoleKey"/>
<type fullname="System.ConsoleKeyInfo"/>
</assembly>
</linker>

Просмотреть файл

@ -89,6 +89,9 @@
<AndroidResource Include="Resources\mipmap-xxhdpi\Icon.png" />
<AndroidResource Include="Resources\mipmap-xxxhdpi\Icon.png" />
</ItemGroup>
<ItemGroup>
<LinkDescription Include="Resources\LinkerDescription.xml" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
<Import Project="Xamarin.Android.Bcl-Tests.targets" />
<PropertyGroup>