AppVeyorEnvironmentInfo.

Project Property

Summary

Gets AppVeyor project information.

Syntax

public AppVeyorProjectInfo Project { get; }

Examples

if (BuildSystem.AppVeyor.IsRunningOnAppVeyor)
{
    Information(
        @"Project:
        Id: {0}
        Name: {1}
        Slug: {2}",
        BuildSystem.AppVeyor.Environment.Project.Id,
        BuildSystem.AppVeyor.Environment.Project.Name,
        BuildSystem.AppVeyor.Environment.Project.Slug
        );
}
else
{
    Information("Not running on AppVeyor");
}
// via AppVeyor
if (AppVeyor.IsRunningOnAppVeyor)
{
    Information(
        @"Project:
        Id: {0}
        Name: {1}
        Slug: {2}",
        AppVeyor.Environment.Project.Id,
        AppVeyor.Environment.Project.Name,
        AppVeyor.Environment.Project.Slug
        );
}
else
{
    Information("Not running on AppVeyor");
}

Value

Type Description
AppVeyorProjectInfo The AppVeyor project information.