From 28cb364196a7a903bdf540b82520bbffc3f6f7e5 Mon Sep 17 00:00:00 2001 From: Igor Stojkovic Date: Sat, 1 Feb 2025 11:37:11 +0100 Subject: [PATCH] Added documentation for new isSlimRestore param --- src/NuGetForUnity/Editor/NugetPackageUninstaller.cs | 1 + src/NuGetForUnity/Editor/NugetPackageUpdater.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/NuGetForUnity/Editor/NugetPackageUninstaller.cs b/src/NuGetForUnity/Editor/NugetPackageUninstaller.cs index b4b5d721..a242b150 100644 --- a/src/NuGetForUnity/Editor/NugetPackageUninstaller.cs +++ b/src/NuGetForUnity/Editor/NugetPackageUninstaller.cs @@ -20,6 +20,7 @@ public static class NugetPackageUninstaller /// The NugetPackage to uninstall. /// The reason uninstall is being called. /// True to force Unity to refresh its Assets folder. False to temporarily ignore the change. Defaults to true. + /// True if uninstall needs to be done as part of slim restore operation. public static void Uninstall([NotNull] INugetPackageIdentifier package, PackageUninstallReason uninstallReason, bool refreshAssets = true, bool isSlimRestore = false) { // Checking for pre-imported packages also ensures that the pre-imported package list is up-to-date before we uninstall packages. diff --git a/src/NuGetForUnity/Editor/NugetPackageUpdater.cs b/src/NuGetForUnity/Editor/NugetPackageUpdater.cs index 03c91059..eeb3ae0e 100644 --- a/src/NuGetForUnity/Editor/NugetPackageUpdater.cs +++ b/src/NuGetForUnity/Editor/NugetPackageUpdater.cs @@ -73,6 +73,7 @@ public static void UpdateAll( /// The current package to uninstall. /// The package to install. /// True to refresh the assets inside Unity. False to ignore them (for now). Defaults to true. + /// True if update needs to be done as part of slim restore operation. /// The reason uninstall is being called. /// The information about how the package has been installed. internal static PackageInstallOperationResult UpdateWithInformation(