Is there any possibility to set behavior on TFS that will build a project and automatically upload it to test server?
As paulsm4 posted in comment.
paulsm4
The Microsoft answer is "script MSBuild".