diff --git a/src/Microsoft.PowerShell.PackageManagement/Cmdlets/CmdletWithSearchAndSource.cs b/src/Microsoft.PowerShell.PackageManagement/Cmdlets/CmdletWithSearchAndSource.cs index 260542f61e..50b48e6f49 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 };