AppVeyorEnvironmentInfo.

Build Property

Summary

Gets AppVeyor build information.

Syntax

public AppVeyorBuildInfo Build { get; }

Examples

if (BuildSystem.AppVeyor.IsRunningOnAppVeyor)
{
    Information(
        @"Build:
        Folder: {0}
        Id: {1}
        Number: {2}
        Version: {3}",
        BuildSystem.AppVeyor.Environment.Build.Folder,
        BuildSystem.AppVeyor.Environment.Build.Id,
        BuildSystem.AppVeyor.Environment.Build.Number,
        BuildSystem.AppVeyor.Environment.Build.Version
        );
}
else
{
    Information("Not running on AppVeyor");
}
if (AppVeyor.IsRunningOnAppVeyor)
{
    Information(
        @"Build:
        Folder: {0}
        Id: {1}
        Number: {2}
        Version: {3}",
        AppVeyor.Environment.Build.Folder,
        AppVeyor.Environment.Build.Id,
        AppVeyor.Environment.Build.Number,
        AppVeyor.Environment.Build.Version
        );
}
else
{
    Information("Not running on AppVeyor");
}

Value

Type Description
AppVeyorBuildInfo The AppVeyor build information.