C# Class SonarQube.Plugins.Roslyn.NuGetPackageHandler

Inheritance: INuGetPackageHandler
Exibir arquivo Open project: SonarSource-VisualStudio/sonarqube-roslyn-sdk Class Usage Examples

Public Methods

Method 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

Method 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 method

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
return IPackage

GetInstalledDependencies() public method

public GetInstalledDependencies ( IPackage package ) : IEnumerable
package IPackage
return IEnumerable

GetLocalPackageRootDirectory() public method

public GetLocalPackageRootDirectory ( IPackage package ) : string
package IPackage
return string

NuGetPackageHandler() public method

public NuGetPackageHandler ( IPackageRepository remoteRepository, string localCacheRoot, Common logger ) : System
remoteRepository IPackageRepository
localCacheRoot string
logger Common
return System