I managed to reproduce the error in the command line: apparently the file contents for Default.msbuild.teamcity.msbuild.tcargs need to be:
/p:Configuration=Debug;DeployPath=E:\websites\umbraco\mysite;Environment=Dev;
instead of:
Configuration=Debug;DeployPath=E:\websites\umbraco\mysite;Environment=Dev;