C# Class NuGetGallery.FunctionalTests.CommandlineHelper

Provides helpers functions around NuGet.exe
Inheritance: NuGetGallery.FunctionalTests.HelperBase
Afficher le fichier Open project: NuGet/NuGetGallery Class Usage Examples

Méthodes publiques

Méthode Description
CommandlineHelper ( ITestOutputHelper testOutputHelper ) : System
DeletePackageAsync ( string packageId, string version, string sourceName ) : Task

Delete the specified package using Nuget.exe

InstallPackageAsync ( string packageId, string sourceName ) : Task

Install the specified package using Nuget.exe

InstallPackageAsync ( string packageId, string sourceName, string outputDirectory ) : Task

Install the specified package using Nuget.exe, specifying the output directory

InvokeNugetProcess ( List arguments, string workingDir = null, int timeout = 360 ) : Task

Invokes nuget.exe with the appropriate parameters.

PackPackageAsync ( string nuspecFileFullPath, string nuspecDir ) : Task
SpecPackageAsync ( string packageName, string packageDir ) : Task
UpdateNugetExeAsync ( ) : Task

Self update on nuget.exe

UploadPackageAsync ( string packageFullPath, string sourceName ) : Task

Uploads the given package to the specified source and returns the exit code.

Method Details

CommandlineHelper() public méthode

public CommandlineHelper ( ITestOutputHelper testOutputHelper ) : System
testOutputHelper ITestOutputHelper
Résultat System

DeletePackageAsync() public méthode

Delete the specified package using Nuget.exe
public DeletePackageAsync ( string packageId, string version, string sourceName ) : Task
packageId string package to be deleted
version string version of package to be deleted
sourceName string source url
Résultat Task

InstallPackageAsync() public méthode

Install the specified package using Nuget.exe
public InstallPackageAsync ( string packageId, string sourceName ) : Task
packageId string package to be installed
sourceName string source url
Résultat Task

InstallPackageAsync() public méthode

Install the specified package using Nuget.exe, specifying the output directory
public InstallPackageAsync ( string packageId, string sourceName, string outputDirectory ) : Task
packageId string package to be installed
sourceName string source url
outputDirectory string outputDirectory
Résultat Task

InvokeNugetProcess() public méthode

Invokes nuget.exe with the appropriate parameters.
public InvokeNugetProcess ( List arguments, string workingDir = null, int timeout = 360 ) : Task
arguments List cmd line args to NuGet.exe
workingDir string working dir if any to be used
timeout int Timeout in seconds (default = 6min).
Résultat Task

PackPackageAsync() public méthode

public PackPackageAsync ( string nuspecFileFullPath, string nuspecDir ) : Task
nuspecFileFullPath string
nuspecDir string
Résultat Task

SpecPackageAsync() public méthode

public SpecPackageAsync ( string packageName, string packageDir ) : Task
packageName string
packageDir string
Résultat Task

UpdateNugetExeAsync() public méthode

Self update on nuget.exe
public UpdateNugetExeAsync ( ) : Task
Résultat Task

UploadPackageAsync() public méthode

Uploads the given package to the specified source and returns the exit code.
public UploadPackageAsync ( string packageFullPath, string sourceName ) : Task
packageFullPath string
sourceName string
Résultat Task