gpt4 book ai didi

tfs - 如何摆脱projectname\.vs\projectname\v15\sqlite3\storage.ide

转载 作者:行者123 更新时间:2023-12-01 23:19:55 24 4
gpt4 key购买 nike

我已经使用 Visual Studio 2015 一段时间了,最​​近升级到了 vs2017。我将我的项目存储在团队基础上,并且经常打开 2 个 Visual Studio 实例(对于存储在同一 TFS 上的不同解决方案)

自从我升级到 vs2017 后,每个项目中都添加了一个新文件:projectname\.vs\projectname\v15\sqlite3\storage.ide 尽管我从未在代码中引用它并且不这样做,但该文件仍在不断修改不要在任何地方使用 sqlite。这会导致两个问题:

1.) 每次我 checkin 挂起的更改时,它都会修改此文件。我尝试隐藏 .vs 文件夹,尝试删除 TFS 上该文件夹的内容。它不在乎。该文件始终在我的待更改列表中。 (我可以排除它,但它不应该在那里。)

2.) 更重要的是,我的 2 个 Visual Studio 实例正在尝试访问彼此的 storage.ide 文件,并且偶尔会抛出错误,因为它们正在使用中。

是什么创建了这个 sqlite 实例以显示在我的项目中?

如果我无法完全删除它,如何才能让它与 TFS 和多个 Visual Studio 实例良好配合?

最佳答案

根据这个问题:What is the "storage.ide" file beneath my Visual Studio solution folder, and what is "persistent storage"? ,似乎您可以排除在源代码管理中添加的这个文件。

Everything in the .vs folder should be excluded from your source repository. It is a folder created by Visual Studio for storing user specific information. Previously there was a .suo file which held this data.The change came from a UserVoice suggestion.

只需使用 .tfignore 就像 .gitignorecustomize which files are ignored by version control ,请注意,这不会影响源代码管理中已有的文件。您需要先删除或销毁源代码管理中的文件,然后 checkin 新创建的 .tfingore 文件。下次当生成挂起的更改时,projectname\.vs\projectname\v15\sqlite3\storage.ide 将被 VS 自动排除。

关于如何创建和添加.tfingore你可以引用我在这个问题中的回答:What is the "storage.ide" file beneath my Visual Studio solution folder, and what is "persistent storage"?

关于tfs - 如何摆脱projectname\.vs\projectname\v15\sqlite3\storage.ide,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46287022/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com