mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Revert "Merge pull request #1458 from PowerShell/psedition_rename"
This reverts commit042d1e99bb, reversing changes made to105bf9c9ff.
This commit is contained in:
1 parent
31cd2728ca
commit
eacfd9418c
8 files changed
+14
-15
No files matched your search
@@ -386,7 +386,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
[AllowEmptyCollection]
|
||||
[ValidateSet("WindowsPowerShell", "PowerShellCore")]
|
||||
[ValidateSet("Desktop", "Core")]
|
||||
[SuppressMessage("Microsoft.Performance",
|
||||
"CA1819:PropertiesShouldNotReturnArrays", Justification = "Cmdlets use arrays for parameters.")]
|
||||
public string[] CompatiblePSEditions
|
||||
|
||||
@@ -50,9 +50,11 @@ namespace System.Management.Automation
|
||||
/// Linux -- All PS on Linux flavors. This may need to be subdivided based on compatibility between distros.
|
||||
/// </remarks>
|
||||
#if !CORECLR
|
||||
internal const string PSEditionValue = "WindowsPowerShell";
|
||||
internal const string PSEditionValue = "Desktop";
|
||||
#elif LINUX
|
||||
internal const string PSEditionValue = "Linux";
|
||||
#else
|
||||
internal const string PSEditionValue = "PowerShellCore";
|
||||
internal const string PSEditionValue = "Core";
|
||||
#endif
|
||||
|
||||
// Static Constructor.
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace System.Management.Automation
|
||||
/// <summary>
|
||||
/// Allowed PowerShell Editions
|
||||
/// </summary>
|
||||
internal static string[] AllowedEditionValues = { "WindowsPowerShell", "PowerShellCore" };
|
||||
internal static string[] AllowedEditionValues = { "Desktop", "Core" };
|
||||
|
||||
/// <summary>
|
||||
/// helper fn to check byte[] arg for null.
|
||||
|
||||
Reference in new issue
Block a user