C# Class Bari.Plugins.Nuget.Tools.NuGet

Default implementation of the INuGet interface, uses the command line NuGet tool in a separate process.
Inheritance: Bari.Core.Tools.DownloadableExternalTool, INuGet
Datei anzeigen Open project: vigoo/bari

Private Properties

Property Type Description
AddContents void
AddDlls void
FindDirectory System.IO.DirectoryInfo
GetAllIn IEnumerable
GetChild System.IO.DirectoryInfo
GetDllsIn IEnumerable
GetRelativePath string

Public Methods

Method Description
CreatePackage ( IFileSystemDirectory targetRoot, string packageName, string nuspec ) : void
InstallPackage ( string name, string version, IFileSystemDirectory root, string relativeTargetDirectory, bool dllsOnly, NugetLibraryProfile maxProfile ) : IEnumerable>.Tuple

Installs a package and returns the path to the DLLs to be linked

NuGet ( IParameters parameters ) : System

Creates the external tool

PublishPackage ( IFileSystemDirectory targetRoot, string packageName, string version, string apiKey ) : void

Private Methods

Method Description
AddContents ( DirectoryInfo contentRoot, List result, LocalFileSystemDirectory localRoot ) : void
AddDlls ( DirectoryInfo libRoot, List result, LocalFileSystemDirectory localRoot, NugetLibraryProfile maxProfile ) : void
FindDirectory ( DirectoryInfo parent, string prefix ) : DirectoryInfo
GetAllIn ( LocalFileSystemDirectory root, DirectoryInfo dir ) : IEnumerable
GetChild ( DirectoryInfo parent, string name ) : DirectoryInfo
GetDllsIn ( LocalFileSystemDirectory root, DirectoryInfo dir ) : IEnumerable
GetRelativePath ( string path, LocalFileSystemDirectory root ) : string

Method Details

CreatePackage() public method

public CreatePackage ( IFileSystemDirectory targetRoot, string packageName, string nuspec ) : void
targetRoot IFileSystemDirectory
packageName string
nuspec string
return void

InstallPackage() public method

Installs a package and returns the path to the DLLs to be linked
public InstallPackage ( string name, string version, IFileSystemDirectory root, string relativeTargetDirectory, bool dllsOnly, NugetLibraryProfile maxProfile ) : IEnumerable>.Tuple
name string Package name
version string Package version, if null or empty then the latest one will be used
root IFileSystemDirectory Root directory for storing the downloaded packages
relativeTargetDirectory string Path relative to root where the downloaded package should be placed
dllsOnly bool If true, only the DLLs will be returned, otherwise all the files in the package
maxProfile NugetLibraryProfile Maximum allowed profile
return IEnumerable>.Tuple

NuGet() public method

Creates the external tool
public NuGet ( IParameters parameters ) : System
parameters IParameters
return System

PublishPackage() public method

public PublishPackage ( IFileSystemDirectory targetRoot, string packageName, string version, string apiKey ) : void
targetRoot IFileSystemDirectory
packageName string
version string
apiKey string
return void