public AddInInstalledEventArgs(AddInPackage package, PackageResult result, string installationPath, string packagePath)
 {
     this.Package = package;
     this.Result = result;
     this.InstallationPath = installationPath;
     this.PackagePath = packagePath;
 }
 public AddInInstalledEventArgs(AddInPackage package, PackageResult result, string installationPath, string packagePath)
 {
     this.Package          = package;
     this.Result           = result;
     this.InstallationPath = installationPath;
     this.PackagePath      = packagePath;
 }
示例#3
0
        public AddInPackage GetUpdate(AddInPackage package, bool includePrerelease)
        {
            var pkg =
                this._repository.GetUpdates(new[] { package.NuGetPackage }, includePrerelease, true).FirstOrDefault();
            if (pkg == null)
                return null;

            return AddInPackage.Create(pkg);
        }
示例#4
0
        public AddInPackage GetUpdate(AddInPackage package, bool includePrerelease)
        {
            var pkg =
                this._repository.GetUpdates(new[] { package.NuGetPackage }, includePrerelease, true).FirstOrDefault();

            if (pkg == null)
            {
                return(null);
            }

            return(AddInPackage.Create(pkg));
        }
示例#5
0
        public AddInPackage Get(string id, string version)
        {
            SemanticVersion ver = SemanticVersion.Parse(version);

            IPackage pkg = this._repository.FindPackage(id, ver);

            if (pkg == null)
            {
                return(null);
            }

            return(AddInPackage.Create(pkg));
        }
示例#6
0
        public AddInPackage Get(string id, bool includePrerelease)
        {
            var packages =
                this._repository.GetPackages()
                .Where(ip => StringComparer.Ordinal.Equals(id, ip.Id));

            if (includePrerelease)
            {
                packages = packages.Where(p => p.IsAbsoluteLatestVersion);
            }
            else
            {
                packages = packages.Where(p => p.IsLatestVersion);
            }

            IPackage pkg = packages.FirstOrDefault();

            if (pkg == null)
            {
                return(null);
            }

            return(AddInPackage.Create(pkg));
        }
示例#7
0
 public PackageEventArgs(AddInPackage package)
 {
     this.Package = package;
 }
示例#8
0
 public PackageEventArgs(AddInPackage package)
 {
     this.Package = package;
 }