Example #1
0
        public Task <NuGetPackage> FindPackageAsync(string packageId, string version)
        {
            NuGetPackage result = new NuGetPackage
            {
                WasFound   = false,
                PackageId  = packageId,
                Version    = version,
                SourcePath = $"https://www.nuget.org/packages/{packageId}/{version}"
            };

            global::NuGet.IPackage package = _repository.FindPackage(packageId, SemanticVersion.Parse(version));
            if (package != null)
            {
                result.WasFound    = true;
                result.LicencePath = package.LicenseUrl?.AbsoluteUri;
                result.ProjectPath = package.ProjectUrl?.AbsoluteUri;
            }

            return(Task.FromResult(result));
        }
Example #2
0
 public PackageWrapper(global::NuGet.IPackage package)
 {
     this.package = package;
 }
Example #3
0
 public IEnumerable <global::NuGet.PackageIssue> Validate(global::NuGet.IPackage package)
 {
     return(rule(new PackageWrapper(package)).Select(pi => pi.ToCommandLine()));
 }
 public void Execute(global::NuGet.IPackage package, string packagePath)
 {
     throw new NotImplementedException();
 }
 public PackageWrapper(global::NuGet.IPackage package)
 {
     this.package = package;
 }
 public void Execute(global::NuGet.IPackage package, string packagePath)
 {
     new Form1(new SymbolServerChecker(new PackageWrapper(package, packagePath))).ShowDialog();
 }
Example #7
0
 public IEnumerable <NuGetPackageExplorer.Types.PackageIssue> Validate(global::NuGet.IPackage package, string packageFileName)
 {
     throw new NotImplementedException();
 }
 public PackageWrapper(global::NuGet.IPackage package, string packageFileName)
 {
     this.package         = package;
     this.packageFileName = packageFileName;
 }
 public IEnumerable <NuGetPackageExplorer.Types.PackageIssue> Validate(global::NuGet.IPackage package, string packageFileName)
 {
     return(rule(new PackageWrapper(package, packageFileName)).Select(pi => pi.ToCommandLine()));
 }
 public PackageWrapper(global::NuGet.IPackage package, string packageFileName)
 {
     this.package = package;
     this.packageFileName = packageFileName;
 }