TFS build job failed for Framework 4.7.2

In some cases, the build definition may look fine at first glance. My Build > Tasks > Pipeline may have the correct Agent pool selected.

However, the Agent job, may have a completely different Agent pool selected.

In this case, just select the proper Agent pool and Save & queue a new build to resolve the issue.


We just had a very similar issue, although we use Azure Devops rather than TFS (but I think the build process should be similar enough, at least regarding this).

I resolved it by updating .NET framework on the build server as well as installing the .NET Framework 4.7.2 developer pack, which you can get from here: https://www.microsoft.com/net/download/visual-studio-sdks

Don't forget to reboot (like I did). Once that's done, as Leo suggested try opening the project in Visual Studio directly on your build server or manually running msbuild from the command line.