jessehouwing / azure-pipelines-tfvc-tasks

Azure Pipelines tasks for Team Foundation Version Control
https://marketplace.visualstudio.com/items?itemName=jessehouwing.jessehouwing-vsts-tfvc-tasks
MIT License
28 stars 17 forks source link

Adding files #116

Open soerenpc opened 7 months ago

soerenpc commented 7 months ago

HI I try to add a file but get this:

Adding ItemSpec: D:\a\14\a\Translated native format\ImCostFoundation.de.label.txt, Recursive: Full, Apply Ignorefile: False No Add detected

A dir shows: Directory: D:\a\14\a\Translated native format

Mode LastWriteTime Length Name


-a---- 4/19/2024 2:34 PM 658 ImCostFoundation.de.label.txt

jessehouwing commented 7 months ago

The a folder is the Artefacts staging folder it's probably not mapped to your TFVC repo. Generally, you need to have your file to be added in the s (Sources) folder.

You could also manually run tf vc workfold /map serverfolder localfolder to map the artefact staging folder or even specifically the created file, then run the add task and perform the commmit.

soerenpc commented 6 months ago

Thanks for your fast reply I had other tasks but are now continuing on this subject.

I tried to add the translated file into D:\a\14\s/Translated but nothing is added I assume it needs to be a mapped folder so what if I just copy the file back to: D:\a\14\s\Metadata\SmartCostFoundation\Smart Cost Foundation\AxLabelFile\LabelResources\de\ImCostFoundation.de.label.txt

?

soerenpc commented 6 months ago

I tried to copy the file back to the mapped position. Then changed the file but it is not picked up by the check-in.