如何在TFS中创建工作区

时间:2010-04-08 14:38:23

标签: tfs

我按照这种方式。

To create a workspace to manage your source-controlled files

   1.

      From the File menu, select Source Control, and then click Workspaces.
   2.

      In the Manage Workspaces dialog box, click Add.
   3.

      Type a descriptive name in the Name box, enter a comment describing the new workspace in the Comment box, and provide alternative Owner and Computer name values, as necessary.
   4.

      Under Working Folders, in the Source Control Folder box, click the text box and then the ellipsis (…).
   5.

      In the Browse for Folder dialog box, select a server folder, and then click OK.
   6.

      Under Working Folders, in the Local Folder box, click the text box, and then click the ellipsis (…).
   7.

      In the Browse for Folder dialog box, select a folder on your computer, and then click OK.
   8.

      In the Add Workspace dialog box, click OK to create the workspace.
   9.

      In the Manage Workspaces dialog box, click Close.

当我点击OK按钮时,它应该从TFS到我的本地机器的所有文件夹?但单击确定后没有这样做,关闭没有发生任何事情,我的本地文件夹也不包含这些文件?

2 个答案:

答案 0 :(得分:3)

只是创建工作区不会得到最新版本。转到“团队资源管理器”选项卡中项目的“源代码管理”部分。

进入源代码管理视图后,您可以右键单击源代码管理中的任何文件夹,右键单击它,然后单击“获取最新版本”。

或者,您的文件>中应该有一个“从源代码管理中打开”选项。如果您需要打开并获取特定解决方案文件,请使用“源代码管理”菜单。

答案 1 :(得分:2)

在TFS中创建工作区不会从源代码管理中提取任何文件。它只是为您提供了管理所有项目的环境。

要下载源代码,您仍然需要找到所需项目的根文件夹,右键单击,然后“获取最新...”

此时,系统会提示您将该项目绑定到源代码所在机器上的本地目录。

相关问题