2010-04-08 69 views
2

我遵循这种方式。如何在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. 

当我点击确定按钮,它应该从TFS到我的本地机器的所有文件夹?但它没有这样做后,克隆好了,关闭没有任何事情发生,我的本地floder不包含这个文件tooo?

谢谢

回答

2

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

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

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

+2

再加上从“源代码管理视图”下拉菜单中选择正确的工作区 – 2010-04-08 14:55:34

+0

我现在工作的很好。 感谢您的时间。 – kumar 2010-04-08 15:04:00

1

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

拉下的源代码,你还是要找到你想要的项目的根文件夹,点击右键,并“获取最新......”

在这一点上,你会被提示将该项目绑定到源代码所在机器上的本地目录。

+0

感谢贾斯汀现在工作正常.. – kumar 2010-04-08 15:08:28

相关问题