AppVeyorEnvironmentInfo.

Platform Property

Summary

Gets the platform name set on build tab of project settings (or through platform parameter in appveyor.yml).

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).