C# Class SonarQube.Plugins.Roslyn.NuGetPackageHandler

Inheritance: INuGetPackageHandler
Afficher le fichier Open project: SonarSource-VisualStudio/sonarqube-roslyn-sdk Class Usage Examples

Méthodes publiques

Méthode Description
FetchPackage ( string packageId, SemanticVersion version ) : IPackage

Attempts to download a NuGet package with the specified id and optional version to the specified directory

GetInstalledDependencies ( IPackage package ) : IEnumerable
GetLocalPackageRootDirectory ( IPackage package ) : string
NuGetPackageHandler ( IPackageRepository remoteRepository, string localCacheRoot, Common logger ) : System

Private Methods

Méthode Description
GetAllDependencies ( IPackage current, List collectedDependencies ) : void
ListPackages ( IList packages ) : void
SelectLatestVersion ( IList packages ) : IPackage
TryGetPackage ( IPackageRepository repository, string packageId, SemanticVersion packageVersion ) : IPackage

Method Details

FetchPackage() public méthode

Attempts to download a NuGet package with the specified id and optional version to the specified directory
public FetchPackage ( string packageId, SemanticVersion version ) : IPackage
packageId string
version SemanticVersion
Résultat IPackage

GetInstalledDependencies() public méthode

public GetInstalledDependencies ( IPackage package ) : IEnumerable
package IPackage
Résultat IEnumerable

GetLocalPackageRootDirectory() public méthode

public GetLocalPackageRootDirectory ( IPackage package ) : string
package IPackage
Résultat string

NuGetPackageHandler() public méthode

public NuGetPackageHandler ( IPackageRepository remoteRepository, string localCacheRoot, Common logger ) : System
remoteRepository IPackageRepository
localCacheRoot string
logger Common
Résultat System