Merge pull request #1557 from PowerShell/quoct/addpseditiontag
Add a tag to check for PSEdition for Find-Packageprovider
This commit is contained in:
commit
a56b29c3a0
|
@ -42,7 +42,11 @@ namespace Microsoft.PowerShell.PackageManagement.Cmdlets {
|
|||
public abstract class CmdletWithSearchAndSource : CmdletWithSearch {
|
||||
internal readonly OrderedDictionary<string, List<SoftwareIdentity>> _resultsPerName = new OrderedDictionary<string, List<SoftwareIdentity>>();
|
||||
protected List<PackageProvider> _providersNotFindingAnything = new List<PackageProvider>();
|
||||
#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 };
|
||||
|
|
Loading…
Reference in a new issue