Hi Danushka Gunathilaka,
Thanks for posting here.
This forum is about the MSBuild, as your issue is more related to the TFS, I could not provide you a directly solution. So I suggest that you can open a new thread on the Stackoverfolw with TFS for better support.
If you have some MSBuild questions, please feel free to contact us. We will try our best to give you a solution.
Thanks for your understanding and cooperation.
MSDN Community Support Please remember to click Mark as Answer. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.