First, you must be sure that all referenced assemblies in the project can be found on the TFS build server. For best practice, you need to install VS2015 on the build server machine.
Secondly, you need to configure the TFS build process template to explicitly specify the ToolPath variable in Run MSBuild for the project as C: \ Program Files (x86) \ MSBuild \ 14.0 \ Bin. Or add the /tv:14.0 argument to the MSBuild command.
source share