Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Visual Studio check out the .vspscc file when I add a file to a project?

If I add a new file to a project under TFS source control, it will check out the project file and the corresponding .vspscc file for that project file.

The project file itself changes (to include the new file), but the .vspscc file doesn't change at all. Why bother checking it out? Is there a way to disable it from being checked out and if there is, should I?

like image 739
kenwarner Avatar asked Jun 25 '10 19:06

kenwarner


People also ask

What is a .vspscc file?

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.

Do we need to check in Vspscc file?

The vssscc/vspscc files are needed, especially for TFVC. Among other things, they hold the list of local files that are explicitly excluded from source control (i.e. . tfignore).

What is Vssscc file?

Source Code Control (SCC) file for software developed with Microsoft Visual Studio; contains metadata that tracks revisions of source code files developed with Visual Studio; includes information such as the version number, file path, and the number of nested projects.


3 Answers

It gets checked out because under certain conditions it will be modified..and thus they checked it out as a matter of default. I wouldn't worry about it..it's not hurting anything, and if you disable it, it might bite you badly in the future in a bizarre way.

like image 58
Caladain Avatar answered Oct 05 '22 16:10

Caladain


According to this post of Ben Ryan:

Team Foundation uses these to store lists of files that have been excluded from source control. We leveraged some of the existing SCC integration layer in Visual Studio to integrate Team Foundation, and these files were one of the carryovers. I'll have to check into what the logic was in breaking out these SCC settings into separate files as opposed to putting them in the solution and project files' SCC sections.

like image 32
Paulo Santos Avatar answered Oct 05 '22 15:10

Paulo Santos


This file is a holdover from past VSS/TFS implementations, like Paulo Santos posted.

On the solution level, I have found no functional use for these files. In 10 years of using TFS, I have never seen that file altered. You can delete these .VSSCC files, as I commonly do for my closed source solutions.

But if you delete the solution-level .vsscc file, you will get a non-destructive error message on the first time open of the solution file...only after a new branch is created. All subsequent solution opening will not show the error message again.

My TFS setup standards have the solution file alone in the root folder, all projects are under sub-folders. Since those .vsscc files double the number of files in my root, I always delete them.

On a project level, I leave those files, as my team never opens project files directly, only solution .SLN files.

For my team, I prefer programmer ease of opening solutions over that one-time error message.

like image 30
Robert J. Good Avatar answered Oct 05 '22 16:10

Robert J. Good