msbuild publicar na linha de comando da pasta .net
msbuild mysln.sln /p:DeployOnBuild=true /p:PublishProfile=<profile-name>
Worried Wasp
msbuild mysln.sln /p:DeployOnBuild=true /p:PublishProfile=<profile-name>