How do I keep Resharper Files out of SVN?

前端 未结 8 1073
生来不讨喜
生来不讨喜 2021-01-04 04:51

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

相关标签:
8条回答
  • 2021-01-04 05:28

    This blog post provides a example on how to do what you want on via command line svn. http://sdesmedt.wordpress.com/2006/12/10/how-to-make-subversion-ignore-files-and-folders/

    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 :(

    0 讨论(0)
  • 2021-01-04 05:29

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

    *ReSharper*
    

    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.

    0 讨论(0)
提交回复
热议问题