TeamCityEnvironmentInfo.

Project Property

Summary

Gets TeamCity project information.

Syntax

public TeamCityProjectInfo Project { get; }

Examples

if (BuildSystem.TeamCity.IsRunningOnTeamCity)
{
    Information(
        @"Project:
        Name: {0}",
        BuildSystem.TeamCity.Environment.Project.Name
        );
}
else
{
    Information("Not running on TeamCity");
}
if (TeamCity.IsRunningOnTeamCity)
{
    Information(
        @"Project:
        Name: {0}",
        TeamCity.Environment.Project.Name
        );
}
else
{
    Information("Not running on TeamCity");
}

Value

Type Description
TeamCityProjectInfo The TeamCity project information.