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

编程入门 行业动态 更新时间:2024-10-27 22:26:52
本文介绍了将Visual Studio解决方案添加到TFS时,为什么空文件夹会消失?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有这个Visual Studio解决方案,其中包括一个项目,该项目的模板文件夹树由几个空文件夹组成。当我使用源代码管理->向源代码管理添加解决方案菜单项将此解决方案添加到Team Foundation Server(TFS)时,它不会将空文件夹添加到TFS存储库中!从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.

现在,我知道我可以使用Source Control Explorer创建文件夹结构了,但是由于整个项目是从Visual Studio内管理的,因此以单独的方式创建这些文件夹感觉有些错误。

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.

是否需要调整某些设置,因此Visual Studio也会创建TFS

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

推荐答案

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

Apparently it's a feature, not a bug:

在将文件添加到源代码管理中,我们不支持添加空的文件夹,但是在我们的研究中,我们的用户首选的SCE工具栏按钮实际上是创建其空树结构,而不是转到文件系统,在那里执行此操作,然后将添加到源代码控制中。

"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."

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

在TFS2008中,您可以将文件夹从Windows资源管理器拖放到源代码管理资源管理器中,并且在签入时会创建空的子文件夹。不确定在TFS2005中是否可以使用该子文件夹,我没有方便的实例来进行测试-任何人?

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?

更多推荐

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

本文发布于:2023-11-01 23:38:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1550740.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件夹   解决方案   Visual   Studio   TFS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!