在 Subversion 控制的 Visual Studio 工作副本中使用“_svn"目录而不是“.svn"还有其他好处吗

问题描述:

我听说 Visual Studio 不喜欢来自 subversion 存储库的工作副本中的 .svn 目录,并且使用_svn"是更好的选择.除了不被探险家隐藏,还有什么玄妙的优势,还是说这都是下流的谣言?

I've heard that Visual Studio doesn't like the .svn directories in a working copy from a subversion repository, and that using '_svn' is a better choice. Apart from not being hidden by the explorer, what is this mysterious advantage, or is this all a dirty rumour?

Visual Studio 2002 和 2003 存在目录以点开头的问题.尤其是将它们与 webprojects 和 FrontPage 服务器扩展结合使用时.

Visual Studio 2002 and 2003 had problems with directories starting with a dot. Especially when using them in combination with webprojects and FrontPage server extensions.

如果您只使用 Visual Studio 2005 及更高版本,我建议您只使用 Subversion 默认的 .svn.

If you use only Visual Studio 2005 and later I would recommend to just use the Subversion default of .svn.

当您定义环境变量 SVN_ASP_DOT_NET_HACK 时,大多数 Subversion 客户端会自动切换到使用 _svn.定义此变量的最简单方法是在 TortoiseSVN 中选择 _svn 设置.其他客户端随后将自动使用此设置.

Most Subversion clients automatically switch to using _svn when you define the environment variable SVN_ASP_DOT_NET_HACK. The easiest way to define this variable is selecting the _svn setting in TortoiseSVN. Other clients will then automatically use this setting.