For those of us not living inside build templates every day here’s the steps that got it working for me:
First find the template associated with your build (if you already know where to find it skip a couple steps).
-
Just right click the build definition and select
Edit build definition
-
Select the
Process
tab and you’ll see the name of the template (quite likely to be DefaultTemplate if you haven’t customized it). On the far right clickShow details
to see the path for the template.
- Go to the
Home
tab under Team explorer and clickSource control explorer
- Find the template file and double click to edit it. It should come up in a graphical view like this. Scroll till you find
Run MSBuild for Project
- Click on this item which will immediately bring up properties
-
Click on the little icon on the right – don’t try and type it in because it’ll probably explode and crash Visual Studio.
-
Enter IN QUOTES the following
"C:\Program Files (x86)\MSBuild\14.0\bin"
NOW FOR THE MOST IMPORTANT PART
For me the Run MSBuild for Project
was in TWO places.
So I just repeated the above steps in both places, and then after I checked in the .xaml
file my build FINALLY worked fine.
You may need to recycle the agent / controller from within the TFS tool.