是否可以将TFS配置为使用文件系统而不是DB来进行工作项附件存储?

是否可以将TFS配置为使用文件系统而不是DB来进行工作项附件存储?

问题描述:

文件附件的限制为4MB似乎太小了。今天我有一个压缩日志文件,我试图将其附加到TFS工作项,以便我们将来可以查看它,并且必须最终将文件分成两部分才能附加它。

The limit of 4MB for file attachments seems too small. Today I had a compressed log file that I was attempting to attach to a TFS work item so that we could review it in the future, and had to end up splitting the file in two just to attach it.

当我问我们是否可以提高限额时,我被告知我们的TFS附件存储在数据库中,因此他们担心它会填满太快。

When I asked if we could raise the limit, I was told that our TFS attachments are stored in the database so they were concerned that it would fill up too quickly.

它好像应该有一个配置选项,让服务器可以访问共享上的TFS存储文件。有没有办法做到这一点?它提供的表明我应该只检查文件到源代码控制的建议有点
不合适,因为我不需要对压缩日志文件进行版本控制,我们不需要为我们设置存储库团队的文件只是为了将文件附加到TFS工作项;另外,我们正在使用GIT和TFS。

It seems like there should be an configuration option to have TFS store files on a share accessible by the server(s). Is there a way to do that? The suggestion that it provides indicating that I should just check the file into source control is somewhat inappropriate, since I don't need version control for the compressed log file, and we shouldn't need to setup a repository for our team's files just to attach files to TFS work items; also, we're using Git with TFS.

嗨Gary Weaver,

Hi Gary Weaver,

>>似乎应该有一个配置选项,让服务器可以访问共享上的TFS存储文件。有没有办法做到这一点?

您无法将工作项附件存储到文件系统,它只会存储在TFS数据库中。

You could not store work item attachment to a filesystem, it will only be stored in TFS Database.

您可以参考以下链接,更改工作项的最大附件大小: https://www.visualstudio.com/en-us/docs/work/reference/change-maximum-attachment-size-work-items

You could refer to the follow link to change the maximum attachment size for work items:https://www.visualstudio.com/en-us/docs/work/reference/change-maximum-attachment-size-work-items

增加附件大小会增加存储中的数据量以及保存工作项所需的时间。

Increasing the attachment size increases the amount of data in storage and the time it takes to save a work item.

要解决大小限制,您可以提交git 提交以添加文件,然后将此提交链接到工作项。欲了解更多信息,请参阅以下链接:

To work around the size limit, you could submit git commits for add files, then link this commit to work items. For more information, please refer to the link below:

https://www.visualstudio.com/en-us/docs/work/track/link-work-items-support-可追溯性#link-work-items-and-git-code-development

最好的问候