简体   繁体   中英

Visual Studio Team Services “stuck” in project

I have set up a number of projects on Git VSTS, and all was fine.

I then tried to add another solution to source control today, but the status bar along the bottom said it was already under one of the previous source control projects I set up - which is in a sibling folder.

The File->Source Control menu item was missing so I couldn't look at bindings or anything.

In the end, I moved all the projects and solution files to a differently named folder, and the normal status bar "Add to source control" item came back.

My question is, why does moving the files work? There were no hidden .git or .vs folders - this solution had never been added to source control before.

What is it doing? Is there a way to fix this if it happens again without renaming the solution folder?

Additional info : I tried disconnecting from TFS and opening the project I wanted to add, but that had no effect - so I presume that's because it thinks it's using the local git repository?

If I look at Team Explorer once disconnected from TFS, then all remote repositories are disconnected as I'd expect, but the local Git one the common code repository is bold still as the current repository - and there seems to be no way of disconnecting from local repositories?

You may try to clean the cache folder to see whether it helps you. The folder path is: C:\\Users\\username\\AppData\\Local\\Microsoft\\Team Foundation\\x.0\\Cache .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM