diff --git a/src/chocolatey/infrastructure.app/services/INugetService.cs b/src/chocolatey/infrastructure.app/services/INugetService.cs
index 59b371ebf7..950ba408ac 100644
--- a/src/chocolatey/infrastructure.app/services/INugetService.cs
+++ b/src/chocolatey/infrastructure.app/services/INugetService.cs
@@ -17,6 +17,7 @@
namespace chocolatey.infrastructure.app.services
{
using System.Collections.Concurrent;
+ using System.Collections.Generic;
using configuration;
using results;
@@ -58,5 +59,11 @@ public interface INugetService : ISourceRunner
/// Name of the package.
void remove_rollback_directory_if_exists(string packageName);
+
+ ///
+ /// Get all installed packages
+ ///
+ /// The configuration
+ IEnumerable get_all_installed_packages(ChocolateyConfiguration config);
}
}
diff --git a/src/chocolatey/infrastructure.app/services/NugetService.cs b/src/chocolatey/infrastructure.app/services/NugetService.cs
index 0a749a7c3b..7676852284 100644
--- a/src/chocolatey/infrastructure.app/services/NugetService.cs
+++ b/src/chocolatey/infrastructure.app/services/NugetService.cs
@@ -1551,7 +1551,7 @@ public virtual void remove_installation_files(IPackage removedPackage, Chocolate
}
}
- private IEnumerable get_all_installed_packages(ChocolateyConfiguration config)
+ public IEnumerable get_all_installed_packages(ChocolateyConfiguration config)
{
//todo : move to deep copy for get all installed
//var listConfig = config.deep_copy();