In TeamCity, if you know the build configuration id, then you can generate URLs like this:

```
http://example.org/guestAuth/repository/download/bt222/.lastSuccessful/exampleBuild.zip

```

But see that "bt222"? That's the Build Configuration ID; it is generated by TC when you set up the build configuration, and it's static. The [Atlassian docs](http://confluence.jetbrains.com/display/TCD7/Build+Configuration#BuildConfiguration-BuildConfigurationID) seem to say that the way to determine it is to look at your URL, on screen.

Thing is, I need to get at it programmatically, in the msbuild script, so that the same build script can serve multiple build configurations. TC otherwise has [so many nice handy variables](http://confluence.jetbrains.com/display/TCD65/Predefined+Build+Parameters) that I'm just hoping I've missed it somehow...