Continuous Integration in VSTS
I will demonstrate how to setup basic continuous integration to build, test and publish code every time someone commits changes to version control.
Requirements
- VSTS account
- A VSTS git repository
Setting Up Continuous Integration
Go to your project in VSTS and follow the steps:
- Find the Files tab of the Code hub, and then click Set up build and confirm the VSTS repository and branch
- In the right panel, select
.NET Desktop
template , and then click Apply - For the Agent queue select
Hosted VS2017
- Click Get sources and then
- Click the Triggers tab in the build definition, and
Enable
the Continuous Integration trigger - Click
Save & queue
to start the first build
References
- Build: MSBuild Date Accessed: 2018-06-03
- Build your .NET desktop app for Windows Date Accessed: 2018-06-03
- Publish NuGet packages from Team Build to Package Management Date Accessed: 2018-06-03
- Define a continuous integration (CI) build process for your Git repo Date Accessed: 2018-06-12
- Run unit tests with your builds Date Accessed: 2018-06-18