I've inherited a build process (Just a disclaimer - I didn't write this stuff!!) that starts off running a .proj file. I'm trying to convert this to a TFS2017 build and running into problems. The .proj file starts with the following:
<UsingTask TaskName="Microsoft.TeamFoundation.Build.Tasks.GetBuildProperties"
AssemblyFile="$(VS120COMNTOOLS)..\IDE\PrivateAssemblies\Microsoft.TeamFoundation.Build.ProcessComponents.dll"
Condition=" '$(BuildUri)' != '' "/>
VS120COMNTOOLS resolves to C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\, so C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\IDE\PrivateAssemblies\Microsoft.TeamFoundation.Build.ProcessComponents.dll does exist, but it's not resolving for some reason.
The error I get is this:
InitVariables:
Running InitVariables TeamFoundationServerUrl= BuildUri=
installer\dev\common\UpdateVersionInfo\uvi.proj(66,5): Error MSB4036: The "GetBuildProperties" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Program Files (x86)\MSBuild\14.0\bin" directory.
Any idea why?