Пример #1
0
        bool AcceptLicenses()
        {
            var             packagesWithLicenses = new PackagesRequiringLicenseAcceptance(Project);
            var             actions  = new IPackageAction [] { this };
            List <IPackage> packages = packagesWithLicenses.GetPackagesRequiringLicenseAcceptance(actions).ToList();

            if (packages.Any())
            {
                return(OnAcceptLicenses(packages));
            }

            return(true);
        }
		bool AcceptLicenses ()
		{
			var packagesWithLicenses = new PackagesRequiringLicenseAcceptance (Project);
			var actions = new IPackageAction [] { this };
			List<IPackage> packages = packagesWithLicenses.GetPackagesRequiringLicenseAcceptance (actions).ToList ();
			if (packages.Any ()) {
				return packageManagementEvents.OnAcceptLicenses (packages);
			}

			return true;
		}