I am trying to use MSDeploy to deploy an MVC project to the server using TeamCity. When I do this on my computer in powershell, using the following command:
msbu
I had exactly the same issue! I've posted the solution I used over at: MsBuild not finding publish profile
Basics were: