Clear ADO workspace cache in dev VM
Recently I was troubleshooting a scenario where a developer could not map the Azure DevOps Metadata folder with their local AOSService/PackagesLocalDirectory in the development environment. They got an error message saying that PackagesLocalDirectory is already mapped in another workspace. Often this error indicates that there indeed exists another workspace with this mapping. In such case the solution is to remove the old workspace before creating a new one. But this time there were no other workspaces. Actually there had been such workspace created by another developer but it was deleted.
For some reason this mapping still existed in the local cache on the computer. The solution was to delete all files in folder C:\Users\Administrator\AppData\Local\Microsoft\Team Foundation\6.0\Cache. After that the mapping could be set up without any issues.
*This post is locked for comments