Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do vcxproj.filters files exist?

Shouldn't vcxproj.filters be embedded in the .vcxproj? As it stands I have to check this in to source control so others can see the folder structuring in the solution.

like image 729
David Avatar asked Aug 04 '11 13:08

David


People also ask

What are Vcxproj filters?

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.

Where is the Vcxproj file?

You can inspect the contents of a . vcxproj file by using any text or XML editor. You can view it in Visual Studio by right-clicking on the project in Solution Explorer, choosing Unload project and then choosing Edit Foo. vcxproj.

How do I see all files in Visual Studio?

Open your project in Visual Studio > click the Show All Files button > expand the bin , Debug > select and right-click the parent folder > choose Include in Project option. 4).


2 Answers

According to what Dan Moseley says in this question, they also wanted to separate the tree structure from the build specific information because changing the tree structure would cause an update to be made to the project file, and that in turn would trigger a rebuild. By moving the logical view of the project to a separate file this is avoided.

like image 137
Miguel Avatar answered Sep 24 '22 07:09

Miguel


They were embedded in fact, in previous versions of Visual Studio. The extension was still .vcproj and the filters were stored inside the project file. However, as of 2010 it was decided to pull the .filter information into a separate file.

It is really up to the design teams now to decide whether to add this source control or not. If you want all the developers to have the same structure (for reasons of communication) it might be wise to check them in. If you want to allow each developer to use their own logical view, then don't.

like image 21
Edwin de Koning Avatar answered Sep 23 '22 07:09

Edwin de Koning