MSBuild is the Microsoft build engine used by Visual Studio and the .NET SDK. It reads XML project files and runs targets, which are made up of tasks, and it uses properties and items to decide what gets compiled, copied and packaged. Because it runs from the command line, developer machines and CI servers use the same build engine.

The posts start with the fundamentals: project file structure, targets and tasks, and how a build runs. Another guide explains file extensions such as .proj, .targets, .props and .tasks, and how imports are layered across projects. Quick-start guides include minimal runnable project files and CLI commands for repeatable builds. Older forum-style threads deal with specific problems, such as error MSB4062 when loading a custom task in MSBuild 4, and msbuild running slower than devenv on a mixed C# and C++ solution, with notes on /maxcpucount tuning.

There is also material on continuous integration. A training blueprint for .NET teams combines MSBuild with TeamCity, NUnit, NCover, FxCop and Web Deploy, and an overview covers Team Foundation Build 2010 architecture and migration from TFS 2008. These posts are useful for .NET developers, build and release engineers, and anyone maintaining older Microsoft build pipelines.

Start here

Latest MSBuild articles

Team Foundation Build 2010: Architecture, Build Definitions, and Migration from TFS 2008

Team Foundation Build 2010 introduced a controller/agent build architecture, richer build definitions, and gated check-in workflows for TFS teams. This revised guide turns the original topic list into a practical reference for setup, customization, and migration planning.

Read More

MSBuild for Beginners: Project File Fundamentals, Build Flow, and Practical Commands

Learn how MSBuild project files are structured, how targets and tasks execute, and which commands are most useful in CI/CD. This revised guide also preserves the original learning links from the post.

Read More

MSBuild File Extensions Explained: .proj, .targets, .props, .tasks, and *proj Types

Understand what common MSBuild-related file extensions do and how they fit together in real .NET build pipelines. This revised guide includes a comparison table, import-flow diagram, and practical XML examples.

Read More

.NET Build and Release Training: Curriculum, Toolchain, Workflow, and Enrollment

A structured, engineer-friendly rewrite of the original .NET Build and Release course page. Review objectives, tool coverage, CI/CD workflow, prerequisites, fees, and key links in one place.

Read More

MSBuild Training Guide: Basics, Custom Targets, Logging, and Troubleshooting

A practical, updated MSBuild training reference based on the original course outline. Learn how MSBuild works, how to customize builds, and how to troubleshoot slow or failing pipelines.

Read More

Continuous Integration Training Blueprint for .NET Teams (MSBuild, TeamCity, NUnit, NCover, FxCop, Web Deploy)

This revised guide converts an older CI course announcement into a practical training blueprint for build and release teams. It maps each tool to the pipeline, shows a workflow diagram, and includes realistic command-line examples for labs.

Read More

MSBuild Quick Start for DevOps: Projects, Targets, Tasks, and CLI Builds

Learn how MSBuild works from the inside out, including projects, properties, items, targets, and tasks. This revised guide adds a build workflow diagram, command examples, and practical usage patterns for automation.

Read More

Running MSBuild 4.0 and 3.5 Side by Side on Legacy CruiseControl.NET CI

If your CI server started failing after projects were upgraded to Visual Studio 2010, the usual cause is that jobs still invoke MSBuild 3.5. This guide shows a legacy-compatible fix: install .NET 4.0, copy required MSBuild targets, and update ccnet.config while keeping 3.5 builds available.

Read More

Fixing MSB4064 When Building VS2010 Web Solutions with NAnt

If a Visual Studio 2010 web solution builds in the IDE but fails from NAnt with MSB4064/MSB4063, the issue is usually a framework/tooling mismatch. This guide walks through the durable fix and the common missteps.

Read More

Master MSBuild: The Essential Guide for Modern Developers

Introduction In the world of software development, automation is no longer a luxury—it’s an absolute necessity. As applications grow more complex and release cycles accelerate, having a…

Read More

Introduction of MSbuild

By Rambabu Muppuri 2810 days ago Comments (3) can u pl help me anyone introduction of msbuild? Hi Guys, can u pl help me anyone Introduction of MSbuild? Regards, Rambabu.M…

Read More

Msbuild slower than devenv

scmuser created the topic: msbuild slower than devenv Hi, I’m experiencing performance inconsistencies with regards to build duration when building a VS2008 solution file with either devenv…

Read More

MSBuild Tool

rambabu1683 created the topic: MSBuild Tool Hi guys, i am new to this forum. can anyone help me about MSBUILD tool with small examples? Warm Regards, Rambabu.M…

Read More

Good Links for Continuous integration with Team City and MSBuild

rajeshkumar created the topic: Good Links for Continuous integration with Team City and MSBuild Continuous integration with Team City and MSBuild bjarte.com/post/continuous-integration-with-team-city-and-msb Regards, Rajesh Kumar Twitt me…

Read More

Help with MSbuild 4 and custom tasks

rajeshkumar created the topic: Help with MSbuild 4 and custom tasks I’m trying to build a custom task using the Task base class in Microsoft.Build.Utilitieis.v4.0. I have…

Read More

MSBuild feature

geethusri26 created the topic: MSBuild feature Hi, Can anyone share TFS MSbuild features in ppt or slideshow ? rajeshkumar replied the topic: Re:MSBuild feature Hi, please check…

Read More

MSBuild: frequently asked questions

What is the difference between .props and .targets files in MSBuild?

By convention, .props files are imported early and set default properties and items. .targets files are imported late and define targets and the logic that uses those values. In SDK-style projects, Directory.Build.props and Directory.Build.targets are picked up automatically from parent folders.

How do I run MSBuild from the command line?

Run something like msbuild MyApp.sln -t:Build -p:Configuration=Release from a Developer Command Prompt. On .NET SDK projects, dotnet build or dotnet msbuild call the same engine.

How can I make MSBuild builds faster?

Use -m (/maxcpucount) to build projects in parallel. Declare Inputs and Outputs on custom targets so incremental builds can skip work that is already up to date. Avoid forcing full rebuilds in CI unless you need them.

What causes error MSB4062 in MSBuild?

MSB4062 means a task could not be loaded from the assembly named in its UsingTask element. Common causes are a wrong assembly path, a task built against an incompatible framework or MSBuild version, or missing dependencies.