Should I add the Visual Studio .suo and .user files to source control?
Others have explained why having the *.suo
and *.user
files under source control is not a good idea.
I'd like to suggest that you add these patterns to the svn:ignore
property for 2 reasons:
- So other developers won't wind up with one developer's settings.
- So when you view status, or commit files, those files won't clutter the code base and obscure new files you need to add.
These files contain user preference configurations that are in general specific to your machine, so it's better not to put it in SCM. Also, VS will change it almost every time you execute it, so it will always be marked by the SCM as 'changed'. I don't include either, I'm in a project using VS for 2 years and had no problems doing that. The only minor annoyance is that the debug parameters (execution path, deployment target, etc.) are stored in one of those files (don't know which), so if you have a standard for them you won't be able to 'publish' it via SCM for other developers to have the entire development environment 'ready to use'.
You don't need to add these -- they contain per-user settings, and other developers won't want your copy.