ToolAliases.

ToolInstaller(ICakeContext) Method

Summary

Gets the tool installer instance.
Namespace
Cake.Common.Tools
Containing Type
ToolAliases

Syntax

[CakePropertyAlias(Cache = true)]
[CakeNamespaceImport("Cake.Core.Packaging")]
[CakeNamespaceImport("Cake.Core.Tooling")]
public static IToolInstaller ToolInstaller(this ICakeContext context)

Examples

var paths = ToolInstaller.Install(new PackageReference("nuget:?package=xunit.runner.console&version=2.9.3"));

Attributes

Type Description
CakePropertyAliasAttribute An attribute used to mark script property aliases.
CakeNamespaceImportAttribute An attribute used to hint Cake about additional namespaces that need to be imported for an alias to work. This attribute can mark an extension method, the extension method class, or the assembly to provide a global set of imports.
CakeNamespaceImportAttribute An attribute used to hint Cake about additional namespaces that need to be imported for an alias to work. This attribute can mark an extension method, the extension method class, or the assembly to provide a global set of imports.

Parameters

Name Type Description
context ICakeContext The context.

Return Value

Type Description
IToolInstaller The tool installer.