When trying to deploy my site using TeamCity and Web Deploy I get this error:
error MSB4057: The target "MsDeployPublish" does not exist in the project.
Is there something I have to install on a build server? It's a clean Windows Server 2012 with Web Deploy 3.5 installed.
Or you can use this NuGet package with portable version of the targets: https://www.nuget.org/packages/MSBuild.Microsoft.VisualStudio.Web.targets and modify your csproj file to include it like this:
<Import Project="..\packages\MSBuild.Microsoft.VisualStudio.Web.targets.12.0.1\tools\VSToolsPath\WebApplications\Microsoft.WebApplication.targets" />