I\'ve recently started working on various C# projects in Visual Studio as part of a plan for a large scale system that will be used to replace our current system that\'s bui
In case you are using ignore list, SVN is case sensitive. So remember to ignore bin and Bin folders separately.
Also, I had a question.. why does it take lot of time some times to refresh the status icon? At times it gets very confusing.
I would manually include all files that I think I shouldn't version control.
My global ignore pattern is:
.dll .pdb .exe .cache .webinfo .snk bin obj debug _Resharper .user resharper
See Mercurial .hgignore for Visual Studio 2008 projects for a Mercurial ignore list. I'm not familiar with the syntax of the SVN ignore list but this thread has a few good lists of what to ignore in Visual Studio.
I would suggest using AnkhSVN - a Subversion source control plugin for Visual Studio 2008/2010.
You can use it to perform your initial add and commit of the solution, projects and sources to the repository and it won't add any of the build artefacts. It won't add anything that is generated by your build, only files that are referenced by your solution. If there are any other bits and pieces you need that aren't in your solution, you can add them afterwards.
Put the following files in version control:
Do not put the following files into version control:
Also, don't put in any object files, executables, auto-generated files (like headers that might be generated).
As for executables and other generated files - there might be an exception if you want to be able to archive releases. That might be a good idea, but you'll probably want to manage that a little differently and possibly in a different place than your source code. If you do this, also archive your .pdb files so you can debug the stuff later. you might want to use a Symbol Server to store you archived symbols (see Debugging Tools for Windows for the symbol server and its documentation).
Here's my list of VS-specific files that I exclude from SVN:
Ankh.Load
*.projdata
*.pdb
*.positions
*proj.user
*proj.*.user
*.ncb
*.suo
*.plg
*.opt
*.ilk
*.pch
*.idb
*.clw
*.aps
According to MSDN:
You can add the following files to Visual Studio source control:
- Solution files (
*.sln
).- Project files, for example,
*.csproj
,*.vbproj
files.- Application configuration files, based on XML, used to control run-time behavior of a Visual Studio project.
Files that you cannot add to source control include the following:
- Solution user option files (
*.suo
).- Project user option files, for example,
*.csproj.user
,*.vbproj.user
files.- Web information files, for example,
*.csproj.webinfo
,*.vbproj.webinfo
, that control the virtual root location of a Web project.- Build output files, for example,
*.dll
and*.exe
files.