Course
Skills Expanded
Continuous Integration
Continuous integration techniques with MSBuild, TeamCity, NUnit, NCover, FxCop, and Microsoft Web Deploy
What you'll learn
This course introduces the theory and practice of continuous integration (CI). Students are shown how to set up a build server for CI and create build scripts using MSBuild to manage the overall build process. Different aspects of a build pipeline are explored including code compilation, testing, coverage, static code analysis, packaging, and deployment. This course is appropriate for developers new to the practice of continuous integration.
Table of contents
A Gentle Introduction
13mins
Minimum Requirements
10mins
Building a Solution
30mins
Build Scripts
29mins
- Build Scripts 0m
- Overview 1m
- Why Do We Need a Build Script? 2m
- Decision Point: How to Add Build Steps 1m
- Recommendation: Do Not Modify csproj/vbproj 1m
- Recommendation: Do Not Script csc.exe/vbc.exe 1m
- Recommendation: Script Everything, but Compile with MSBuild 0m
- Why the Command Line? 1m
- Hello, MSBuild 1m
- Defining Targets 1m
- Running from the Command Line 1m
- Compiling the Solution 2m
- Setting the Default Target 0m
- Eliminating Duplication 3m
- Switching Between Debug and Release 2m
- Scripting Other Tasks 3m
- Using Custom Tasks 3m
- Handling Non-Fatal Command Failures 2m
- Depending on Multiple Targets 1m
- Running on the CI Server 2m
- Summary 1m
Integrating External Tools
39mins
- Integrating External Tools 0m
- Overview 0m
- External Tools 1m
- Test Runners 1m
- Integrating NUnit via Exec Task 4m
- Failing the Build with Exit Codes 2m
- Running Tests on the Build Server 1m
- Displaying Test Reports 2m
- Coverage 2m
- 100% Coverage Myth 2m
- Integrating Coverage 0m
- Integrating NCover via Custom MSBuild Tasks 5m
- Failing the Build on Low Coverage 3m
- Running Coverage on the Build Server 4m
- Static Code Analysis 1m
- Integrating FxCop 5m
- Failing the Build by Analyzing XML Output 5m
- Summary 2m
Deployment Automation
30mins
- Overview 0m
- Packaging/Deployment Options 2m
- Server Preparation 2m
- Deployment Pipeline 1m
- Continuous Deployment 1m
- Adding Packaging to the Build Script 4m
- Finding Microsoft Web Deploy on a Developer Machine 2m
- Packaging from the Command Line 1m
- Packaging on the Build Server 4m
- Installing Microsoft Web Deploy on the Web Server 5m
- Adding Deployment to the Build Script 4m
- Integrating Deployment into the Pipeline 3m
- Demonstrating Continuous Deployment 2m
- Summary 1m