I am trying to use labels in TFS. I understand that labels have scope but I don't understand why am I getting an error:
A label with the name 'CB-ARCHIVE-2018' already exists. Do you want to continue? The existing label will be replaced.
I created a ('CB-ARCHIVE-2018') labeled for '$/SourceCode/WebService' and I am trying to use the same label for folder '$/SourceCode/WebService-branch'.
Thank you!
When you use Visual Studio to apply a label that already exists, the operation removes the label from all file versions and then applies the label. From the command prompt, however, the label operation is additive. See Label Command (Team Foundation Version Control). So use tf command to add the exist label:
tf label CB-ARCHIVE-2018 $/SourceCode/WebService-branch /collection:http://tfs:8080/tfs/DefaultCollection
Check the link below for more information: