How do I keep Resharper Files out of SVN?


I am using VS2008 and Resharper. Resharper creates a directory _Resharper.ProjectName. These files provide no value for source control that I am aware of and cause issues when committing changes. How can I get SVN to ignore them? I am using TortoiseSVN as my interface for SVN.

EDIT: You guys are fast.

9/16/2008 4:55:52 AM

Accepted Answer

9/16/2008 4:49:25 AM

Gonna post an answer to my own question here as I read the manual after I typed this up. In TortoiseSVN, goto settings. Add


to the "Global ignore pattern". Adding items to the global ignore pattern means that these files will be ignored for any project you work on for the client with TortoiseSVN installed, so it might not be appropriate to use the global ignore in all cases.

You can also add specific files and directories to the ignore list for individual projects if you select this from the TortoiseSVN menu BEFORE they have been added to your repository. The "BEFORE" part is what tripped me up originally. Since this is a single developer project, I've been checking in binaries, etc. b/c it has no consequence for other developers, and the Resharper files got in there.


Store Resharper caches in system temp folder. Check First setting page in r#. Environment -> General -> System -> Store caches ..


Short answer: the "svn:ignore" property

Long answer:

# cd /your/working/copy
# export EDITOR=vi
# svn propedit svn:ignore .

(add "_Resharper.ProjectName" on its own line and write the file out)

Edit: erg... doh, just realized you said tortoise... this is how you do it with the command-line version of SVN


svn has an "ignore" property you can attach to a filename pattern or a directory. Files and directories that are ignored won't be reported in "svn st" commands and won't go into the repo.

Example: you have C source code in .c and .h files, but the compiler creates a bunch of .o files that you don't want subversion to bother telling you about. You can use Subversion's properties feature to tell it to ignore these.

For a few files in one checked-out working directory, for example myproject/mysource/

bash> svn propedit svn:ignore mysource

In the text editor that pops up (in linux, probably vi or whatever your EDITOR env var is set to), add one filename pattern per line. Do not put a trailing space after the pattern (this confuses svn).


That's all. You may want to do a commit right away, since sometimes svn gets fussy about users making too many different kinds of changes to files between commits. (my rule is: if in doubt, commit. It's cheap)

For a type of file appearing in many places in a sprawling directory tree, edit the subversion config file kept inside the repository. This requires the repository administrator's action, unless you have direct access to the repository (not through svn: or http: or file:, but can 'cd' to the repository location and 'ls' its files). The svn books should have the details; i don't recall offhand right now.

Since i don't use Tortoise, i don't know how directly the description above translates - but that's why we have editable answers (joy!)


This blog post provides a example on how to do what you want on via command line svn.

These change will be reflected in TortoiseSVN.

I believe there is a way to do it via tortoise however i don't have a windows vm accessible atm, sorry :(