- Right click on your web project and select Publish…
- Then click Custom as the target.
- Name the profile Release
- Select Web Deploy Package as the Publish method.
Package location of deploy.zip
And Site name of __SiteName__
And click Next
- Select your release configuration. I use Release which is the default.
And click Close
- Click Yes to save the configuration you just created.
- Finally, in the solution explorer, right click on the Release.pubxml in the Properties > PublishProfiles folder and select Add Ignored File to Source Control…