Move Environment to shared CoreLib (dotnet/corefxdotnet/coreclr#34654)
authorStephen Toub <stoub@microsoft.com>
Fri, 18 Jan 2019 01:07:12 +0000 (20:07 -0500)
committerStephen Toub <stoub@microsoft.com>
Fri, 18 Jan 2019 03:09:15 +0000 (22:09 -0500)
commit49d55dd43674a2113a582cd30e17831fea0f2a59
treed52c0543714ba6573f7ef5181081acfe587aa1ed
parent880d811c9caa98d28055a783101e59846cd50ad7
Move Environment to shared CoreLib (dotnet/corefxdotnet/coreclr#34654)

Rather than having Environment partially live in corefx and call into an EnvironmentAugments type in CoreLib that in turn calls into an Environment type in CoreLib, we're just moving Environment to live in CoreLib.

To start that, this PR moves Environment and its dependencies from their current locations into the shared CoreLib.  Those changes will mirror over to coreclr.  After that, I'll fix it up to work in CoreLib. And once those changes are built and available back to corefx, I'll update System.Runtime.Extensions to just use the functionality from CoreLib and delete remaining unnecessary code from corefx.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/1e21dfc513b51b151d7c9b16f1e2a6a81c339d94
41 files changed:
src/libraries/System.Private.CoreLib/src/Interop/Unix/System.Native/Interop.Access.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Unix/System.Native/Interop.ChDir.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Unix/System.Native/Interop.GetEUid.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Unix/System.Native/Interop.GetHostName.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Unix/System.Native/Interop.GetPwUid.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Unix/System.Native/Interop.GetUnixName.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Unix/System.Native/Interop.GetUnixRelease.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Unix/System.Native/Interop.MountPoints.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Unix/System.Native/Interop.SysConf.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Advapi32/Interop.LookupAccountNameW.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Interop.BOOLEAN.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Interop.Libraries.cs
src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.ExpandEnvironmentStrings.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetComputerName.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetCurrentDirectory.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetCurrentProcess_IntPtr.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetLogicalDrives.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetSystemDirectoryW.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetSystemInfo.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetVersionExW.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.IsWow64Process_IntPtr.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.SYSTEM_INFO.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.SetCurrentDirectory.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Secur32/Interop.GetUserNameExW.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Shell32/Interop.SHGetKnownFolderPath.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/Environment.SpecialFolder.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/Environment.SpecialFolderOption.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/Environment.Unix.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/Environment.Win32.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/Environment.WinRT.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/Environment.Windows.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/Environment.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/IO/DriveInfoInternal.Unix.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/IO/DriveInfoInternal.Windows.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/IO/PersistedFiles.Names.Unix.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/IO/PersistedFiles.Unix.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/OperatingSystem.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/PasteArguments.Unix.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/PasteArguments.Windows.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/PasteArguments.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/PlatformID.cs [new file with mode: 0644]