Visual Studio 2013, TFS is very slow

后端 未结 12 1483
有刺的猬
有刺的猬 2021-02-01 15:12

When I originally installed VS Ultimate 2013 everything was fine but for the last month or so it\'s been a dog. The source control explore in my Visual Studio 2013 install is ve

相关标签:
12条回答
  • 2021-02-01 15:39

    Had this happen to me a few times now, so there are some things I'd like to add to the accepted answer.

    I work in a place where we have a lot of VS solutions with a lot of files in them. Microsoft's guidelines suggest that you shouldn't be using a local workspace if its going to have more than 100,000 items in it. So you could prevent this problem entirely by:

    1. Not using local workspaces
    2. Making sure never to map enough folders into a single workspace that it gets over 100,000 files associated with it.
    3. Periodically declaring "TFS bankruptcy" and unmapping everything.

    For me, the drawback of having to use strict locking and not having offline access makes #1 unacceptable. I'm going to try harder to do #2, but honestly #3 is what I've been living by.

    Its kind of like early Windows, where every year or so you had to just reinstall the OS to remove all the accumulated cruft.

    0 讨论(0)
  • 2021-02-01 15:41

    This make me crazy too for over six months until I found this instruction. Now, my VSO is fling. Note: this information I copy from somebody. Would like to give them credit but I cannot remember how did I find this.

    You can fix this problem of TFS by editing registry. Navigate to key HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\TeamFoundation\SourceControl\Proxy and then change value of URL to any dummy website like 'www.abcdummy.com' Restart VS after editing registry key value.

    0 讨论(0)
  • 2021-02-01 15:42

    in short "Run it as an administrator".

    No one of those solution does work at all, I even search on this link: Why is Visual Studio 2013 very slow?

    In vain, just do this ONE simple step:

    Go to your visual studio path, usually installed on this path: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE namely the file "devenv.exe" , then right click on it, click "Run an administrator" ===> then open your visual studio project.

    So, you can just send a shortcut of "devenv.exe" to the desktop to easily run it as an administrator each time. Have ^_^ Fun

    0 讨论(0)
  • 2021-02-01 15:45

    I cleaned my workspace of unnecessary projects and it ran better. I think vh_click is on to something with the 50,000 ads thing. TFS keeps track of all your edits and over time with tons of projects, undos, and craziness you could amasse a large set of which TFS has to chug. Get out the Clorox, the Comet or whatever else you clean with and dump some junk or move it to some archive folder or backup drive.

    0 讨论(0)
  • 2021-02-01 15:50

    Cleaning local folders helped: See 'Team Explorer - Pending Changes', under 'Excluded Changes' it said: 'Detected: 50000 add(s)'. Click it to see path to folders.

    0 讨论(0)
  • 2021-02-01 15:51

    Cleaning up the Workspace was the solution for me, when opening visual studio 2015 the Source Control Window will remain in a Loading phase, I had 2 workspaces name and name_1 and I removed both. No need to delete the entire folder, though , keep in mind that if you do delete the workspace and have the files, you will need to force the get latest to be on the safe side

    0 讨论(0)
提交回复
热议问题