Is there any way to automatically have a web application published using a pre-created publish profile on successful build? I don\'t want to have to click the publish icon,
Try like below,
msbuild mysln.sln /p:DeployOnBuild=true /p:PublishProfile=
you have to pass following as build parameter in the project property.
/p:DeployOnBuild=true /p:PublishProfile=