I have written a build script using psake which I run in Teamcity.
I have Teamcity 6.0, so I run psake from a .cmd, but I don't think that changes anything.
Everything is working fine, but I have two problems.
Nunit isn't communicating with Teamcity so when a test fails, Teamcity says everything is ok.
MsBuild behaves the same. Even though the build fails, Teamcity reports success.
I would like to know how get Teamcity to detect these failures.
Here is my example script: https://github.com/MikeEast/BuildTests/blob/master/build/build.ps1
You will probably need to notify Teamcity yourself via its simple but elegant build status notification system.
For example, you could output the following message to stdout during your powershell script.