BuildSystemAliases.

BuildSystem(ICakeContext) Method

Summary

Gets a BuildSystem instance that can be used to query for information about the current build system.
Namespace
Cake.Common.Build
Containing Type
BuildSystemAliases

Syntax

[CakePropertyAlias(Cache = true)]
public static BuildSystem BuildSystem(this ICakeContext context)

Examples

var isLocal = BuildSystem.IsLocalBuild;

Attributes

Type Description
CakePropertyAliasAttribute An attribute used to mark script property aliases.

Parameters

Name Type Description
context ICakeContext The context.

Return Value

Type Description
BuildSystem A BuildSystem instance.