[S.R.I.RuntimeInformation] Fix FrameworkDescription on Android (#4946)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 30 May 2017 16:34:53 +0000 (18:34 +0200)
committerGitHub <noreply@github.com>
Tue, 30 May 2017 16:34:53 +0000 (18:34 +0200)
commit37fe83f6eaf073ae7ecd470bf3d2541af5829652
treea559e8ddcc72d01d73a4616bf54d84712e2f7719
parente06781fb7a9404144a12c9ae9cd04a4bdf337601
[S.R.I.RuntimeInformation] Fix FrameworkDescription on Android (#4946)

* [S.R.I.RuntimeInformation] Fix FrameworkDescription on Android

It turns out using `DllImport ["__Internal"]` doesn't work on
XA (and other cases where Mono is embedded) because it searches
for the method in the host which embeds Mono and doesn't find it,
resulting in an EntryPointNotFoundException.

We need to switch to an icall instead. However there's already
an existing icall+BCL wrapper: Mono.Runtime.GetDisplayName().

Added IVT from corlib to S.R.I.RuntimeInformation so we can call it.

* Update API snapshot
external/api-snapshot
mcs/class/Facades/System.Runtime.InteropServices.RuntimeInformation/Makefile
mcs/class/Facades/System.Runtime.InteropServices.RuntimeInformation/System.Runtime.InteropServices/RuntimeInformation.cs
mcs/class/corlib/Assembly/AssemblyInfo.cs