MSBuild Training — .NET Build Automation for Enterprise & Legacy Systems
Master MSBuild for .NET Framework and .NET (Core) build automation. Project file configuration, custom tasks, CI/CD integration with Azure DevOps and Jenkins. Enterprise .NET build engineering.
What Is MSBuild?
MSBuild is the build platform for .NET — used by Visual Studio, the .NET CLI (dotnet build), and Azure DevOps. MSBuild uses XML project files (.csproj, .vbproj) to define build processes: compilation, resource embedding, NuGet packaging, testing, and deployment. MSBuild powers builds for .NET Framework (legacy) and modern .NET (Core/5/6/7/8+). Understanding MSBuild deeply is essential for .NET DevOps engineers.
Where MSBuild Fits in Modern DevOps
MSBuild is the native build engine for the .NET ecosystem. In Azure DevOps, MSBuild tasks are the standard for .NET builds. In GitHub Actions, the dotnet build command (which invokes MSBuild) handles .NET CI/CD. For legacy .NET Framework applications (still widely deployed in enterprises), MSBuild knowledge is critical for maintaining build infrastructure. For modern .NET, MSBuild knowledge enables build customization, multi-targeting, and performance optimization.
Who Should Attend
- .NET developers who want to master build configuration beyond the IDE
- DevOps engineers building CI/CD pipelines for .NET applications
- Build/release engineers managing .NET build infrastructure
- Teams maintaining legacy .NET Framework applications
Learning Outcomes
- Configure MSBuild project files for .NET Framework and modern .NET
- Write custom MSBuild tasks and targets for build automation
- Implement multi-targeting (e.g., net48 + net8.0) in a single project
- Integrate MSBuild with Azure DevOps Pipelines and GitHub Actions
- Manage NuGet package creation, versioning, and publishing through MSBuild
- Optimize .NET build performance with incremental builds and caching
Course Modules
- MSBuild Fundamentals — Project file structure. Properties, items, targets, tasks. Evaluation and execution model.
- Common Build Scenarios — Compilation, resource embedding, NuGet packaging, assembly versioning, XML transforms.
- Custom MSBuild — Writing custom tasks (C#). Inline tasks. Target extensibility. BeforeBuild/AfterBuild hooks.
- Multi-Targeting — TargetFrameworks. Conditional compilation. Framework-specific references. Compatibility.
- NuGet & MSBuild — PackageReference. Creating NuGet packages. Package metadata. Symbol packages.
- MSBuild in Azure DevOps — MSBuild task. YAML pipelines. Build variables. Artifact publishing.
- MSBuild in GitHub Actions & Jenkins — dotnet CLI. GitHub Actions for .NET. Jenkins + MSBuild plugin.
- Capstone: Enterprise .NET Build — Design multi-targeted .NET build with CI/CD, NuGet publishing, and build optimization.
Hands-on Exercises
Configure a .NET solution with multi-targeted projects. Write custom MSBuild targets for build-time code generation. Integrate MSBuild with Azure DevOps YAML pipelines. Optimize build time with caching and parallel builds.
Enterprise Use Cases
- Maintaining .NET Framework 4.8 enterprise applications with automated MSBuild pipelines
- Multi-targeting libraries for net48 (legacy) and net8.0 (modern) in a single codebase
- .NET build standardization across 30+ microservices with shared MSBuild imports
Related Courses
See also .NET Build & Release Training, NAnt Training (for legacy .NET builds), or the DevOps Engineering program.
TOOLS_COVERED
PREREQUISITES
- Basic C# or .NET knowledge
- Familiarity with Visual Studio or dotnet CLI
CURRICULUM
READY TO UPSKILL YOUR ENGINEERING TEAM?
Browse our training catalog, check upcoming cohorts, and enroll in the program that fits your transformation goals.
FIND YOUR TRAINING PATHOnline · Classroom · Corporate · Self-paced · Certification-aligned