为什么我的 .tfignore 没有忽略 *.vssscc? [英] Why is my .tfignore not ignoring *.vssscc?

查看:36
本文介绍了为什么我的 .tfignore 没有忽略 *.vssscc?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行 VS Enterprise 2015.这个地狱般的东西一直想将我的解决方案的 .vssscc 文件添加到版本控制中.我的 .tfignore 有这一行:

I'm running VS Enterprise 2015. This infernal thing keeps wanting to add my solution's .vssscc file to version control. My .tfignore has this line:

*.vssscc

.tfignore 中的其他项目工作正常,但由于某种原因,这个项目不是.目录树中没有其他 .tfignore 文件.当然我忽略了一些东西,但我正在拔出我剩下的头发试图弄清楚是什么.有什么建议吗?

The other items in .tfignore are working fine, but for some reason this one is not. There are no other .tfignore files in the directory tree. Surely I'm overlooking something, but I'm pulling what's left of my hair out trying to figure out what. Any suggestions?

推荐答案

*.vssscc 代表 Visual Studio 解决方案源代码控制文件

将解决方案添加到源代码管理后,会创建相应的 .vssscc 文件.文本文件包含连接信息和排除文件列表,类似于项目提示文件.此文件是临时文件,仅存在于源控制数据库中.

When a solution is added to source control, a corresponding .vssscc file is created. The text file contains connection information and an exclusion file list, similar to the project hint file. This file is temporary and exists only in the source control database.

根据经验,我们建议让 Visual Studio 处理这些文件.它将把它需要的文件添加到源代码管理中,而忽略那些不需要的文件..vssscc 文件还管理解决方案绑定,因此最好让它们(由 VS)控制.

As a rule of thumb, we'd recommend letting Visual Studio handle those files. It'll add to source control the files it needs and leave out those not needed. .vssscc files also manage the solution bindings, so better to have them controlled (by VS) .

此外,如果 Visual Studio 所需的文件不受源代码控制,则它的源代码控制绑定可能会出现问题.

Also, visual studio can have problems with the source control bindings if the files it needs are not under source control.

这篇关于为什么我的 .tfignore 没有忽略 *.vssscc?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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