Add IsTeamCity flag

This commit is contained in:
Brice Lambson 2014-12-01 10:48:12 -08:00
parent f61b1496b2
commit 22e94d2fbb
1 changed files with 7 additions and 0 deletions

View File

@ -10,4 +10,11 @@ functions
return "t" + DateTime.UtcNow.ToString("yyMMddHHmmss");
}
}
bool IsTeamCity
{
get
{
return Environment.GetEnvironmentVariable("TEAMCITY_PROJECT_NAME") != null;
}
}
}