/// <summary> /// Output installed packages to the project(s) /// </summary> private void WriteInstalledPackages(Dictionary <NuGetProject, IEnumerable <Packaging.PackageReference> > dictionary) { // Get the PowerShellPackageWithProjectView var view = PowerShellInstalledPackage.GetPowerShellPackageView(dictionary, VsSolutionManager, ConfigSettings); if (view.Any()) { WriteObject(view, enumerateCollection: true); } else { LogCore(MessageLevel.Info, Resources.Cmdlet_NoPackagesInstalled); } }
/// <summary> /// Output installed packages to the project(s) /// </summary> void WriteInstalledPackages(Dictionary <Project, IEnumerable <Packaging.PackageReference> > dictionary) { // Get the PowerShellPackageWithProjectView var view = PowerShellInstalledPackage.GetPowerShellPackageView(dictionary, null); if (view.Any()) { WriteObject(view, enumerateCollection: true); } else { LogCore(MessageLevel.Info, "No packages installed."); } }