Move NativeLibrary to the shared partition (dotnet/coreclr#24143)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Tue, 30 Apr 2019 02:16:10 +0000 (04:16 +0200)
committerJan Kotas <jkotas@microsoft.com>
Tue, 30 Apr 2019 02:16:10 +0000 (19:16 -0700)
commitfa22e1e820410b187672b80beb118d0f99add752
tree54c4e6a01acd70528b1e679d393a8be97365eb0f
parent96ff8c4ce2dc142446bd4a28ba8a945038c69d76
Move NativeLibrary to the shared partition (dotnet/coreclr#24143)

I'm taking the LibraryNameVariation helper from System.Runtime.Loader for the ride as well because it's a general purpose probing logic that is useful in a managed implementation of NativeLibrary.

Commit migrated from https://github.com/dotnet/coreclr/commit/8f54d67f5f5a451ce43f1a70a1fc5fd0e4e469f9
src/coreclr/src/System.Private.CoreLib/System.Private.CoreLib.csproj
src/coreclr/src/System.Private.CoreLib/src/System/Runtime/InteropServices/NativeLibrary.CoreCLR.cs [new file with mode: 0644]
src/coreclr/src/System.Private.CoreLib/src/System/Runtime/Loader/AssemblyDependencyResolver.cs
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/NativeLibrary.cs [moved from src/coreclr/src/System.Private.CoreLib/src/System/Runtime/InteropServices/NativeLibrary.cs with 88% similarity]
src/libraries/System.Private.CoreLib/src/System/Runtime/Loader/LibraryNameVariation.Unix.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/Runtime/Loader/LibraryNameVariation.Windows.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/Runtime/Loader/LibraryNameVariation.cs [new file with mode: 0644]