I’m using MySQL connector in my Visual Studio 2010 Professional project which requires changes in project settings:
Include DirectoriesLibrarie Directories
Those settings are stored in foo.vcxproj among with the list of files to be compiled (correct me if I’m wrong). The problem is the project is developed by many people (we are using git as our version control system) and we need to actualize foo.vcxproj which results into breaking Include Directories settings.
Is there a way to create something like “project (solution) specific settings in separate file” which would allow everyone to have his/her own file containing just those 3 lines defining these paths?
NOTE: I’ve already found this, but I’m not sure whether this is the way and what’s the common/best practice for problems like these.
If you can:
foo.vcxprojfile,you could then use a git mechanism allowing you, on
git add, to restore the right content (without the three lines), while making it possible for the developers to add their own settings recorded in saidfoo.vcxproj.The ‘cleaning’ process would be done by a script (“
clean“), declared as a gitattributes filter driver (which only has the content, and not the path or name of the files it filters):So you would have your personalized file in your working tree, but what you had back to the index is the original content.
See the Git-scm book for an example.