mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
address cr feedback
This commit is contained in:
1 parent
24d720ebc1
commit
260b6af5fe
1 file changed
+3
-3
@@ -1037,14 +1037,14 @@ namespace Microsoft.PackageManagement.Internal.Implementation {
|
||||
throw new ArgumentNullException("request");
|
||||
}
|
||||
|
||||
#if CORECLR
|
||||
var providerAssemblies = Enumerable.Empty<string>();
|
||||
|
||||
#if !CORECLR
|
||||
#else
|
||||
//looks like registry needs to be here for supporting .msi packages
|
||||
providerAssemblies = (_initialized ? Enumerable.Empty<string>() : _defaultProviders)
|
||||
var providerAssemblies = (_initialized ? Enumerable.Empty<string>() : _defaultProviders)
|
||||
.Concat(GetProvidersFromRegistry(Registry.LocalMachine, "SOFTWARE\\MICROSOFT\\PACKAGEMANAGEMENT"))
|
||||
.Concat(GetProvidersFromRegistry(Registry.CurrentUser, "SOFTWARE\\MICROSOFT\\PACKAGEMANAGEMENT"));
|
||||
|
||||
#endif
|
||||
|
||||
#if !COMMUNITY_BUILD
|
||||
|
||||
Reference in new issue
Block a user