Search code examples
c++visual-studio-2010

.vcxproj in source control


I have been reading lots of questions regarding whether vcxproj files should be added to source control or not. The consensus seems to be that they should, but when opening the files I noticed that there are a lot of user specific paths contained within.

Seeing as this is a project that is being worked on by a number of people, should I still add it to source control? It seems like it would clash with other peoples' setups.


Solution

  • Of course they need to be added to source control, .vcxproj is the project file. Quoting MSDN:

    Project files no longer use the .vcproj file name extension. Visual Studio automatically converts project files that were created by an earlier release of Visual C++ to the format that is used by the current system. For more information about how to manually upgrade a project, see /Upgrade (devenv.exe).

    In the current release, the file name extension for a project file is .vcxproj.

    The .vcxproj.user files, on the other hand, do not need to be added to source control. The link above describes what each of these files contain as well.