- Home
- .NET code examples
- Azure DevOps pipeline example .NET project for CI/CD
Azure DevOps pipeline example .NET project for CI/CD
Software
This is the software that will need to be installed onto your machine.
- Visual Studio 2022 17.0.5 or above. It will work with the free community version. Please note, this project will not work with VS 2019.
- .NET 6.0 SDK 6.0.101 or above. Visual Studio 2022 should already have the .NET 6 SDK installed.
Get the application working
These are the steps to get the application working.
- Fill out the code example form. We will send you an email to the GitHub repository where you can download the sample.
You are now ready to go.
Open the solution in Visual Studio
If you wish to look at the solution, open up RoundTheCode.AzureTestProject.sln in Visual Studio 2022.
https://localhost:9001. Navigating to that link will display the Swagger documentation. There is one API endpoint that can be ran.
Source control hosting
With Azure DevOps, you'll have to host the code with your own source control hosting service. You can do that by either forking the repo into your own GitHub account, or pushing the repo to another source control hosting service, like BitBucket.
Pipeline YAML files
The build pipeline YAML file (saved as azure-pipelines.yml), and the release pipeline YAML file (saved as azure-pipelines-1.yml), are available in the repo's root.
azure-pipelines.yml and azure-pipelines-1.yml files in the repo, it will automatically pick these files up when creating your first pipeline in Azure Pipelines. If you wish to create the YAML file from scratch, you will need to delete these files from your repo.
Give us your anonymous feedback regarding this page, or any other areas of the website.
Watch .NET tutorials
Subscribe to our YouTube channel
Latest code examples
C# 14: New features with code examples
Download the code example and see what's new in C# 14. From extension members to simple lambdas, learn how these features make your code cleaner and smarter.