C# Class ScriptCs.Package.InstallationProvider.NugetInstallationProvider

Inheritance: IInstallationProvider
ファイルを表示 Open project: 7sharp9/scriptcs

Public Methods

Method Description
GetRepositorySources ( string path ) : IEnumerable
InstallPackage ( IPackageReference packageId, bool allowPreRelease = false, Action packageInstalled = null ) : bool
IsInstalled ( IPackageReference packageReference, bool allowPreRelease = false ) : bool
NugetInstallationProvider ( IFileSystem fileSystem ) : System

Private Methods

Method Description
GetVersion ( IPackageReference packageReference ) : SemanticVersion

Method Details

GetRepositorySources() public method

public GetRepositorySources ( string path ) : IEnumerable
path string
return IEnumerable

InstallPackage() public method

public InstallPackage ( IPackageReference packageId, bool allowPreRelease = false, Action packageInstalled = null ) : bool
packageId IPackageReference
allowPreRelease bool
packageInstalled Action
return bool

IsInstalled() public method

public IsInstalled ( IPackageReference packageReference, bool allowPreRelease = false ) : bool
packageReference IPackageReference
allowPreRelease bool
return bool

NugetInstallationProvider() public method

public NugetInstallationProvider ( IFileSystem fileSystem ) : System
fileSystem IFileSystem
return System