private PackageInstallationInfo GetInstallationInfo(string packagePath) { var info = new PackageInstallationInfo { Mode = InstallMode.Install, Action = UpgradeAction.Upgrade, Path = packagePath }; if (string.IsNullOrEmpty(info.Path)) { throw new Exception("Package is not selected."); } info.SetProcessingMode(); return(info); }