团队资源管理器未检测到本地工作区的所有添加 [英] Team Explorer does not detect all adds to the local workspace

查看:29
本文介绍了团队资源管理器未检测到本地工作区的所有添加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Visual Studio Professional 2015版本 14.0.24720.00 更新 1 与 TFS 2013 (30723.00).

假设我的本地 TFS 工作区是 d:\workspace我现有的一些不在源代码管理中的项目位于 d:\projects 下,我想将它们添加到 TFS.

当我将 Solution_Ad:\projects 复制到 d:\workspace\solution_a_team\Main 时,其中 solution_a_team 是带有名为 Main 的分支的团队项目文件夹,团队资源管理器说 Detected: x add(s) - 我假设 x 是传输的文件数.

令人困惑的是数字 x 不一致.有时检测到所有文件有时只检测到一小部分文件.我做错了什么,或者将这些文件夹检入 TFS 的最佳方法是什么?

解决方案

首先,请检查排除的更改中是否添加了某些文件.待定更改页面中包含包含的更改和排除的更改.

此外,不建议仅将文件或项目复制到工作区文件夹.这不是在源代码管理中添加文件的正确方法.

如果要在源代码管理中添加解决方案,只需在解决方案资源管理器中打开解决方案并右键单击该解决方案,在资源管理器中选择将解决方案添加到源代码管理"并选择您的位置想加.如果解决方案已添加到源代码管理中,则其前面会有一个锁定图标.

如果您想在版本控制中手动添加文件,最简单的方法是将文件夹或文件从 Windows 资源管理器拖到源控制资源管理器中的文件夹中.更多详情请参考 MSDN 链接:

I'm using Visual Studio Professional 2015 Version 14.0.24720.00 Update 1 with TFS 2013 (30723.00).

Let's say my local TFS workspace is d:\workspace Some of my existing projects which are not in source control are lying under d:\projects and I want to add them to TFS.

When I copy Solution_A from d:\projects to d:\workspace\solution_a_team\Main, where solution_a_team is the team project folder with a branch named Main, Team Explorer says Detected: x add(s) - where I'm assuming x is the number of files transferred.

What's confusing is that the number x is not consistent. Sometimes all files are detected sometimes only small percentage of files. What am I doing wrong, or what's the best way to check these folders into TFS?

解决方案

First, please check whether there are some files adding in the excluded changes. There are included changes and excluded changes in the pending changes page.

Also, it's not recommend to just copy files or projects to the workspace folder. It's not the right way to add files in source control.

If you want to add a solution in source control, just open the solution in solution explorer and right click the solution ,in the explorer select "Add solution to source control" and choose the location you want add to. If the solution have added in the source control, there will be a lock icon in front of it.

If you want to manually add files in version control, the simplest way you can Drag the folders or files from Windows Explorer into the folder in Source Control Explorer . More details please refer the link from MSDN: Add files to the server

Moreover, you can also achieve this through TF command, or check in files through windows file explorer directly by TFS Power Tools.

这篇关于团队资源管理器未检测到本地工作区的所有添加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆