This post will walk you through creating a release profile in your ASP.NET Web Application, which can be used for CI/CD on VSTS now Azure DevOps.

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