Visual studio is hanging on checking out items TFS

2019-08-08 13:21发布

问题:

I'm attempting to open a solution in a local workspace, and Visual Studio 2017 just hangs with this message in the lower left corner:

Here are my configurations:

How do I get my solution to build?

回答1:

It's not a good choice to keep a couple hundred thousand files in TFS local workspace.

When might I need to use a server workspace?

When you use a server workspace, Visual Studio keeps only one copy of each file. This can significantly reduce disk space usage and improve performance when you have a lot of items. We recommend that you use a server workspace if:

  • Your workspace contains more than 100,000 items.

  • You want to use Visual Studio 2010 or earlier versions to work with the workspace.

  • You need to use the Enable get latest on check-out option.

The documentation is from here. You should either use server workspace or create more granular local workspaces to work out this problem.