为什么将 Visual Studio 解决方案添加到 TFS 时空文件夹会消失?

发布于 2024-07-14 13:40:47 字数 339 浏览 4 评论 0原文

我有这个 Visual Studio 解决方案,其中包含一个项目,该项目具有由多个空文件夹组成的模板文件夹树。 当我使用“源代码管理 -> 将解决方案添加到源代码管理”菜单项将此解决方案添加到 Team Foundation Server (TFS) 时,它不会将空文件夹添加到 TFS 存储库! 从 TFS 下载代码时,我确实需要存在这些文件夹。

现在,我知道我可以使用源代码管理资源管理器创建文件夹结构,但由于整个项目是在 Visual Studio 中管理的,因此以单独的方式创建这些文件夹感觉有点错误。

我是否需要调整一些设置,以便 Visual Studio 也将为空项目文件夹创建 TFS 文件夹?

I have this Visual Studio solution that includes a project that has a template folder tree consisting of several empty folders. When I add this solution to Team Foundation Server (TFS) using the "Source Control -> Add Solution to Source Control" menu item it doesn't add the empty folders to the TFS repository! I really need those folder to be present when the code is downloaded from TFS.

Now, I know I can create the folder structure using Source Control Explorer, but since the whole project is managed from within Visual Studio it feels kinda wrong to create these folders in a separate way.

Is there some setting I need to adjust so Visual Studio will also create TFS folders for empty project folders?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

毁梦 2024-07-21 13:40:47

显然这是一个功能,而不是一个错误:

“在将文件添加到源代码管理中我们
不支持添加空
文件夹,但在我们的研究中我们的用户
首选 SCE 工具栏按钮
实际上创建了他们的空树
结构而不是去
文件系统,当场执行
添加到源代码管理。”

http://connect.microsoft.com/VisualStudio /feedback/ViewFeedback.aspx?FeedbackID=119974

在 TFS2008 中,您可以将文件夹从 Windows 资源管理器拖放到源代码管理资源管理器中,签入时将创建空子文件夹。不确定这在 TFS2005 中是否有效,我不知道没有方便的实例来测试它 - 有人吗?

Apparently it's a feature, not a bug:

"in the Add files to source control we
do not support the addition of empty
folders, but in our research our users
preferred the SCE toolbar button for
actually creating their empty tree
structure rather than going to the
file system, doing it there and then
adding to source control."

http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=119974

In TFS2008 you can drag and drop folders from Windows Explorer into source control explorer, and empty subfolders will be created when checking in. Not sure if this works in TFS2005, I don't have an instance handy to test it - anyone?

贵在坚持 2024-07-21 13:40:47

拖放文件夹在 TFS 2008 上对我有用,但在 TFS 2005 上却不起作用。

Drag and Drop folders worked for me on TFS 2008, although it didn't on TFS 2005.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文