tfs - TFS 2010 源代码管理中的符号链接(symbolic link)?

标签 tfs version-control symlink tfvc

据我所知,Team Foundation Server 2010 的源代码管理(以及之前的版本)不支持文件链接(符号链接(symbolic link))。

链接(根据 Visual SourceSafe)的概念是在文件夹中提供一个“硬”文件,然后在其他位置“链接”到该文件 - 与文件系统硬链接(hard link)的设计完全相同。

有谁知道文件是否可以链接?我意识到这通常不是一个好的做法,但在某些情况下它是有意义的。

根据此线程中的答案:Linking TFS source control folder from another TFS project这是不可能的,但我找不到明确的答案。

我能找到的最接近 Google 的内容是 MSDN forum 上的一个线程。但它已经很旧了(2006年)。我几乎假设这仍然是答案(除非有人知道不同)?

最佳答案

This thread是最近的(2010 年),关于 TFS 2008 和 2010:

TFS (2008 and 2010) do not have support for links. There is a server-side extension for TFS 2010 (ie. what VS2010 used for gated checkin) but this sounds like a client-side solution since the link must be converted to a file to be recognized by the client OM.

If you only work with the command line, how about a wrapper tool for some version control operations? For example, the check-in wrapper would convert links to a linktext file and add or replace the existing linktext file before doing the normal check-in. The check-out wrapper would check-out the corresponding linktext file. Note that there will be quite a bit of work since you'll have to wrap many commands.

关于tfs - TFS 2010 源代码管理中的符号链接(symbolic link)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6223064/

相关文章:

ruby - 使用指向 ruby​​ 可执行文件的符号链接(symbolic link)时查找相关库

php - PHP 中的符号链接(symbolic link)不起作用

visual-studio - TFS 2012 : Change work item type

svn - 是什么让一些版本控制系统更擅长 merge ?

javascript - 如何在构建过程中自动化 jshint?

git - 我如何运行 "git status"并获取文件名

bash - 总是提示在 git 中输入 stash 消息

linux - 创建带有子目录的符号链接(symbolic link)

tfs - 以编程方式将文件添加到 VS 项目以进行单元测试

angularjs - 在 Electron/angularjs 应用程序中访问 TFS 和 visualstudio 在线 REST Api