A step-by-step guide to setting up a CI build pipeline in Azure DevOps for an ASP.NET Core Web API project. Covers pushing existing code to Azure Repos, creating two YAML pipeline files (a CI build pipeline triggered on merges to main and a PR verification pipeline), configuring branch policies to enforce the PR gate, and producing a deployable ZIP artifact. Includes full YAML examples with explanations of key flags like --no-restore, --no-build, and the PublishBuildArtifacts task.

6m read timeFrom medium.com
Post cover image
Table of contents
IntroductionSetting Up Azure DevOpsPushing Your Code to Azure ReposGet Remigiusz Zalewski’s stories in your inboxThe Two YAML Pipeline FilesBuild.yaml — CI Build PipelinePullRequestVerification.yaml — PR Quality GateCreating the Pipelines in Azure DevOpsEnabling Branch Policy on MainEnd-to-End TestKey TakeawaysWhat’s Next?Resources

Sort: