如何处理 .NET Standard/.NET Core 中的 .vspscc 文件?
他们还应该成为项目的一部分吗?
他们是否应该受到源代码控制( checkin )?
-> 如果不是,最好将它排除在 SourceControl Explorer 中或使用 .tfignore 文件
最佳答案
假设您使用 TFVC 作为源代码控制。
.vspscc
is a Source Code Control (SCC) file for projects created with Microsoft Visual Studio; contains metadata used for tracking revisions of Visual Studio software development projects; includes information such as the version number, file path, and the number of nested projects.
您不需要处理/修改/跟踪这些文件。 VS 自动排除这些文件,防止它们在源代码管理中被检查。
会有
<Exclusion>*.vspscc</Exclusion>
LocalItemExclusions.config 文件中的 session 。 What files are ignored in TFS by default?如果这些文件有问题,则问题可能与源代码控制绑定(bind)有关。简单地解除绑定(bind)和重新绑定(bind)源代码控制可能会奏效。
如果您使用 Git 作为源代码控制。它们完全没用。
关于这个文件的更多细节,你也可以看看这个问题:Why does Visual Studio check out the .vspscc file when I add a file to a project?
关于.net - .NET Standard/Core 中的 .vspscc 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61608147/