Summary
Determines whether the build script running on a FreeBSD based system.
- Namespace
- Cake
.Common - Containing Type
- EnvironmentAliases
Syntax
[CakeMethodAlias]
[CakeAliasCategory("Platform")]
public static bool IsRunningOnFreeBSD(this ICakeContext context)
Examples
if (IsRunningOnFreeBSD())
{
Information("FreeBSD!");
}
Attributes
Type | Description |
---|---|
Cake |
An attribute used to mark script method aliases. |
Cake |
An attribute used for documentation of alias methods/properties. |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
Return Value
Type | Description |
---|---|
bool |
true if the build script running on a FreeBSD based system; otherwise false .
|