未找到 TFS 链接文件 [英] TFS Linked Files Not Found

查看:40
本文介绍了未找到 TFS 链接文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个核心项目和几个子项目.我链接到子项目的核心项目中的文件.我右击我的 csproj 并说现有文件 > 添加 > 链接.这是我的项目的外观:

I have a core project and several sub projects. I link to files in the core project for the sub ones. I righted clicked my csproj and said existing file > add > link. Here is how my project looks:

这是我的 Windows 资源管理器的图片:

Here is a picture of my Windows Explorer:

当我登记入住时,我收到此错误:

When I check in, I receive this error:

找不到文件 C:\Users\joe_a84\Documents\JMASoftware\QuickBooks\Main\Source\Platform Support\NOP\Source\Versions\nop265\Nop265\Module\QuickBooksSettings.cs

Could not find file C:\Users\joe_a84\Documents\JMASoftware\QuickBooks\Main\Source\Platform Support\NOP\Source\Versions\nop265\Nop265\Module\QuickBooksSettings.cs

该文件不存在,因为它已链接.我如何告诉 TFS 它是一个链接文件?

The file does not exist there because it is linked. How can I tell TFS that it's a linked file?

推荐答案

这是另一个项目的本地文件级链接.特定子文件夹中只有一个文件.其他项目可以通过这种方法链接到该文件.这种方法的问题在于,从 TFS 的角度来看,您无法判断文件是否被其他项目共享.一个好的做法是将这些文件保存在单独的文件夹中,名称为 Common 或 Shared 等.一直在源代码管理中跨分支使用文件链接的人将不得不以完全不同的方式改变他们的方法.

This is a local file level linking by another project. There is only one file at a specific subfolder. Other projects can link to the file via this approach. The problem with this approach is that from TFS viewpoint, you cannot tell if a file is shared by other projects. A good practice will be to keep such files in separate folder with name like Common or Shared etc. People who have been using File linking across branches in Source Control would have to change their approach quite differently.

这篇关于未找到 TFS 链接文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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