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,
Add the following to your project file:
The value of PublishProfile (Local in the example above) is the name of the publish profile you want to run.
PublishProfile
Local
Sources: https://www.dotnetcatch.com/2017/03/24/publish-webdeploy-automatically-with-vs-build/ https://stackoverflow.com/a/41830433/90287