How to Setup Build Pipeline for your ASP.Net Application with Azure DevOps Step by Step | For Beginners

Mustafa Challawala
3 min readJan 24, 2021

Today we are going to Learn how you can Setup Build Pipeline for your ASP.Net application, If you are new to DevOps then Azure DevOps is a Platform for DevOps where we can manage almost everything we need to make our DevOps journey Smooth and Everything you would get in one single place which is Azure DevOps not matter what kind of application you wants to build. However it is Great platform so far.

Today we have ASP.Net WebApp and API which we are going to see how you can Setup your own Build Pipeline without requiring any Special Skills. In this project We are having Different Branches for Different Environment Dev, UAT, PreProd and Prod.

Creating your Build pipeline

  1. Go To Pipelines and create New pipeline for your project source code.
Create Build Pipeline

2. Now Select Classic Editor .

Use the classic editor

3. Select Source from where you wants to get your code, select Project , Repository and Branch and Click on Countiue.

Select Source

4. You can select Predefine Build Templates or you can create your own, In our case we are taking ASP.NET .

Select build template.

5. Keep tasks as it is the template will automatically setup necessary properties. if you wants to change feel free to change those. in our case we are not changing anything in Job’s Steps here.

Build steps in agent job.

6. Change Build number format for your build pipeline (Optional).

Set build number format

7. Also you can enable Continues integration and Include branches on which you wants to build artifact automatically.

Enable continuous integration

8. Now you can Save your changes and Queue it and check by running your pipeline.

As you can see it get automatic build triggered and artifact name is also set upon our format. In Next few days will also upload article about how you can setup your release pipeline as well.

--

--

Mustafa Challawala

DevOps | Cloud Computing | Kubernetes | Big Data Administration | Docker | AWS | Azure | GCP