While running a build with Sonar Scanner for MSBuild, we are getting the following error
ERROR: Unable to TFS annotate the following file which is not in a mapped TFS workspace:
We are using TFVC
as repository and tried the arguments /d:sonar.scm.enabled=true /d:sonar.scm.provider=tfvc
with no success.
We have also checked the stackoverflow question TFS Annotation Error but I am not sure how to do that in a build server where the source code is always getting cleaned.