From 1de1012f051ad9131b6308555f8f8737abab4d5a Mon Sep 17 00:00:00 2001 From: quoctruong Date: Thu, 28 Jul 2016 14:39:31 -0700 Subject: [PATCH] Add a tag to check for PSEdition for Find-Packageprovider --- .../Cmdlets/CmdletWithSearchAndSource.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Microsoft.PowerShell.PackageManagement/Cmdlets/CmdletWithSearchAndSource.cs b/src/Microsoft.PowerShell.PackageManagement/Cmdlets/CmdletWithSearchAndSource.cs index 260542f61..50b48e6f4 100644 --- a/src/Microsoft.PowerShell.PackageManagement/Cmdlets/CmdletWithSearchAndSource.cs +++ b/src/Microsoft.PowerShell.PackageManagement/Cmdlets/CmdletWithSearchAndSource.cs @@ -42,7 +42,11 @@ namespace Microsoft.PowerShell.PackageManagement.Cmdlets { public abstract class CmdletWithSearchAndSource : CmdletWithSearch { internal readonly OrderedDictionary> _resultsPerName = new OrderedDictionary>(); protected List _providersNotFindingAnything = new List(); +#if CORECLR + internal static readonly string[] ProviderFilters = new[] { "Packagemanagement", "Provider", "PSEdition_PowerShellCore" }; +#else internal static readonly string[] ProviderFilters = new[] { "Packagemanagement", "Provider" }; +#endif protected const string Bootstrap = "Bootstrap"; protected const string PowerShellGet = "PowerShellGet"; internal static readonly string[] RequiredProviders = new[] { Bootstrap, PowerShellGet };