为什么将 Visual Studio 解决方案添加到 TFS 时空文件夹会消失?
我有这个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
显然这是一个功能,而不是一个错误:
http://connect.microsoft.com/VisualStudio /feedback/ViewFeedback.aspx?FeedbackID=119974
在 TFS2008 中,您可以将文件夹从 Windows 资源管理器拖放到源代码管理资源管理器中,签入时将创建空子文件夹。不确定这在 TFS2005 中是否有效,我不知道没有方便的实例来测试它 - 有人吗?
Apparently it's a feature, not a bug:
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?
拖放文件夹在 TFS 2008 上对我有用,但在 TFS 2005 上却不起作用。
Drag and Drop folders worked for me on TFS 2008, although it didn't on TFS 2005.