Fix build break associated with adding PORTABLE to PackageManagementService
This commit is contained in:
parent
5fcd59db92
commit
e8fd91c5e6
|
@ -857,9 +857,9 @@ namespace Microsoft.PackageManagement.Internal.Implementation {
|
|||
Version maximumVersion,
|
||||
ProviderOption providerOption = ProviderOption.LatestVersion) {
|
||||
|
||||
#if PORTABLE
|
||||
return Enumerable.Empty<string>();
|
||||
|
||||
#if !PORTABLE
|
||||
#else
|
||||
//We don't need to scan provider assemblies on corepowershell.
|
||||
|
||||
//if provider is installed in providername\version format
|
||||
|
@ -988,7 +988,6 @@ namespace Microsoft.PackageManagement.Internal.Implementation {
|
|||
//return the providers with latest version under the providerAssemblies folder
|
||||
//This method only gets called during the initialization, i.e. LoadProviders().
|
||||
private IEnumerable<string> ProvidersWithLatestVersionFromProviderAssembliesLocation(IHostApi request) {
|
||||
return Enumerable.Empty<string>();
|
||||
#if !PORTABLE
|
||||
// don't need this for core powershell
|
||||
try {
|
||||
|
@ -1023,8 +1022,9 @@ namespace Microsoft.PackageManagement.Internal.Implementation {
|
|||
{
|
||||
request.Debug(ex.Message);
|
||||
}
|
||||
return Enumerable.Empty<string>();
|
||||
#endif
|
||||
|
||||
return Enumerable.Empty<string>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in a new issue