private static void UpdateInventory(PackageInventory localInventory, DependencyResolution resolution) { foreach (IPackageIdentity uninstall in resolution.Uninstalls) { Logger.LogPackageUninstalled(uninstall); localInventory.Remove(uninstall); } foreach (IPackageIdentity install in resolution.Installs) { Logger.LogPackageInstalled(install); localInventory.Add(install); } }