summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2019-01-10 18:31:18 +0100
committerJan Kotas <jkotas@microsoft.com>2019-01-10 09:31:18 -0800
commit4e032bc4cf862bca1668b12c6656b918467742b5 (patch)
tree30f947d6556e4a8c294842feff0c69eda9958014
parente6504ac402a65283e2083ec8d28e8c90a743bd1a (diff)
downloadcoreclr-4e032bc4cf862bca1668b12c6656b918467742b5.tar.gz
coreclr-4e032bc4cf862bca1668b12c6656b918467742b5.tar.bz2
coreclr-4e032bc4cf862bca1668b12c6656b918467742b5.zip
Moves EnvironmentVariableTarget enum to shared partition (#21930)
-rw-r--r--src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems1
-rw-r--r--src/System.Private.CoreLib/shared/System/EnvironmentVariableTarget.cs13
-rw-r--r--src/System.Private.CoreLib/src/System/Environment.cs7
3 files changed, 14 insertions, 7 deletions
diff --git a/src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems b/src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems
index 8bf192906d..df9a17e730 100644
--- a/src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems
+++ b/src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems
@@ -206,6 +206,7 @@
<Compile Include="$(MSBuildThisFileDirectory)System\DuplicateWaitObjectException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Empty.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\EntryPointNotFoundException.cs" />
+ <Compile Include="$(MSBuildThisFileDirectory)System\EnvironmentVariableTarget.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\EventArgs.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\EventHandler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ExecutionEngineException.cs" />
diff --git a/src/System.Private.CoreLib/shared/System/EnvironmentVariableTarget.cs b/src/System.Private.CoreLib/shared/System/EnvironmentVariableTarget.cs
new file mode 100644
index 0000000000..e68cbd8ecf
--- /dev/null
+++ b/src/System.Private.CoreLib/shared/System/EnvironmentVariableTarget.cs
@@ -0,0 +1,13 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+namespace System
+{
+ public enum EnvironmentVariableTarget
+ {
+ Process = 0,
+ User = 1,
+ Machine = 2,
+ }
+} \ No newline at end of file
diff --git a/src/System.Private.CoreLib/src/System/Environment.cs b/src/System.Private.CoreLib/src/System/Environment.cs
index 488da3b78a..04bd7d0ce7 100644
--- a/src/System.Private.CoreLib/src/System/Environment.cs
+++ b/src/System.Private.CoreLib/src/System/Environment.cs
@@ -27,13 +27,6 @@ using Internal.Win32;
namespace System
{
- public enum EnvironmentVariableTarget
- {
- Process = 0,
- User = 1,
- Machine = 2,
- }
-
internal static partial class Environment
{
// Assume the following constants include the terminating '\0' - use <, not <=