TeamCitySharper is a .NET 4 library to access TeamCity REST API in both Async and Sync ways.
var teamCityClient = new TeamCityClient("username", "password", "yourServerUrl");
IEnumerable<Task<Project>> allProjects = teamCityClient.GetProjectDetailsAsync();
foreach (var task in allProjects)
{
var project = task.Result;
task.ContinueWith(t => WriteLineProjects(project));
}
var teamCityClient = new TeamCityClient("username", "password", "yourServerUrl");
IEnumerable<Project> allProjects = teamCityClient.GetProjectDetailsAsync();
foreach (var project in allProjects)
{
WriteLineProjects(project);
}
You might use the ClickToBuild.bat which use psake or just open the solution in Visual Studio 2010
https://github.com/laurentkempe/TeamCitySharper
Follow (@laurentkempe) on twitter.
Report bugs & issues on https://github.com/laurentkempe/TeamCitySharper/issues
Copyright (c) 2102 Laurent Kempé (@laurentkempe)