Summary
Gets the platform name set on build tab of project settings (or through platform parameter in appveyor.yml).
- Namespace
- Cake
.Common .Build .AppVeyor .Data - Containing Type
- App
Veyor Environment Info
Syntax
public string Platform { get; }
Examples
if (BuildSystem.AppVeyor.IsRunningOnAppVeyor)
{
Information(
@"Platform:{0},
BuildSystem.AppVeyor.Environment.Platform
);
}
else
{
Information("Not running on AppVeyor");
}
if (AppVeyor.IsRunningOnAppVeyor)
{
Information(
@"Platform:{0},
AppVeyor.Environment.Platform
);
}
else
{
Information("Not running on AppVeyor");
}
Value
Type | Description |
---|---|
string | The platform name set on build tab of project settings (or through platform parameter in appveyor.yml). |