IPackageInstaller Interface


Represents an installer for a specific package.
graph TD Type["IPackageInstaller"] class Type type-node Type-.->Implementing0["INuGetPackageInstaller"] click Implementing0 "/api/Cake.NuGet/INuGetPackageInstaller" Type-.->Implementing1["NuGetPackageInstaller"] click Implementing1 "/api/Cake.NuGet/NuGetPackageInstaller"


public interface IPackageInstaller


Name Value Summary
CanInstall(PackageReference, PackageType) bool
Determines whether this instance can install the specified resource.
Install(PackageReference, PackageType, DirectoryPath) IReadOnlyCollection<IFile>
Installs the specified resource at the given location.

Extension Methods

Name Value Summary
Dump<IPackageInstaller>() string
Get a basic string representation of specified object.
NotNull<IPackageInstaller>(string) void
Throws an exception if the specified parameter's value is null.
ThrowIfNull<IPackageInstaller>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
ThrowIfNull<IPackageInstaller>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value