コード例 #1
0
        internal static void Cmd_UninstallAll(params string[] args)
        {
            if (!Folders.IsCurrentOutwardPathValid())
            {
                Console.WriteLine("You need to set the Outward path first!");
                return;
            }

            for (int i = LocalPackageManager.s_enabledPackages.Count - 1; i >= 0; i--)
            {
                var pkg = LocalPackageManager.s_enabledPackages.ElementAt(i).Value;
                LocalPackageManager.TryUninstallPackage(pkg.GUID);
            }
        }