IPackageInstaller Interface

Summary

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"

Syntax

public interface IPackageInstaller

Methods

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.
IsIn<IPackageInstaller>(IPackageInstaller[]) bool
Checks if the source is contained in a list
NotNull<IPackageInstaller>(string) void
Throws an exception if the specified parameter's value is null.
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