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)); }
public PackageWrapper(global::NuGet.IPackage package) { this.package = package; }
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 void Execute(global::NuGet.IPackage package, string packagePath) { new Form1(new SymbolServerChecker(new PackageWrapper(package, packagePath))).ShowDialog(); }
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())); }