Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I add .vcxproj.filter files to source control?

While evaluating Visual Studio 2010 Beta 2, I see that in the converted directory, my vcproj files became vcxproj files. There are also vcxproj.filter files alongside each project which appear to contain a description of the folder structure (\Source Files, \Header Files, etc.).

Do you think these filter files should be kept per-user, or should they be shared across the whole dev group and checked into SCC?

My current thinking is to check them in, but I wonder if there are any reasons not to do that, or perhaps good reasons why I should definitely check them in.

The obvious benefit is that the folder structures will match if I'm looking at someone else's machine, but maybe they'd like to reorganize things logically?

like image 825
jschroedl Avatar asked Dec 01 '09 15:12

jschroedl


People also ask

What is Vcxproj filter file?

vcxproj. filters) is an XML file in MSBuild format that is located in the root project folder. It specifies which file types go into which logical folder in Solution Explorer.

What is Vcxproj user file?

Vcxproj.filters files Use filters files in Visual Studio C++ projects to define custom logical folders for files in Solution Explorer.

What is Vcxproj Visual Studio?

A VCXPROJ file is a software development project created by Visual C++, a Microsoft Visual Studio component used to develop C++ programs. It contains XML-formatted text that defines a project's content, platform requirements, versioning information, and web server or database server settings.


1 Answers

We intentionally pulled the .filter. file information out of the .vcproj when we translated to the .vcxproj MSBuild format. One reason is exactly what you pointed out, that the filters are purely a logical view, and different team members may want different views. The other is that sometimes the build is set up to check the timestamp of the project file, and trigger a rebuild if it has changed - because that may mean there are different source files to build, or different settings, etc. I don't recall if we actually shipped with the build trigging that way, but the idea was that we did not want to trigger a rebuild simply because the filters changed, as they don't affect the build.

like image 130
dan moseley Avatar answered Sep 28 '22 10:09

dan moseley