Summary
Gets AppVeyor project information.
- Namespace
- Cake
.Common .Build .AppVeyor .Data - Containing Type
- App
Veyor Environment Info
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. |