コード例 #1
0
 public AddInInstalledEventArgs(AddInPackage package, PackageResult result, string installationPath, string packagePath)
 {
     this.Package = package;
     this.Result = result;
     this.InstallationPath = installationPath;
     this.PackagePath = packagePath;
 }
コード例 #2
0
 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;
 }