visual-studio 你在 Visual Studio 中为 SVN 使用哪个插件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 
原文地址: http://stackoverflow.com/questions/423687/
Warning: these are provided under cc-by-sa 4.0 license.  You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Which plugin do you use for SVN in Visual Studio?
提问by Brann
I'm considering using SVN for my .Net projects, and I'd like to know what plugins are available for integrating the source control capabilities directly into the Visual Studio IDE.
我正在考虑将 SVN 用于我的 .Net 项目,我想知道哪些插件可用于将源代码控制功能直接集成到 Visual Studio IDE 中。
I already know about the following Visual Studio extensions:
我已经知道以下 Visual Studio 扩展:
- VisualSVN, which seems great but is not free. It is implemented as a low-level VS package extension. Is anyone using it? 
- AnkhSVN, which is free but I've heard it's a bit buggy. It is implemented as a VS add-in extension. Is anyone using it? are you experiencing problems? Edit:The 2.0 version is a complete rewrite and seems to solve the problem I've heard about (which were related to the 1.x versions) 
- Edit: TortoiseSVN+ Mindscape's FileExplorer VS Extension, which is not a real IDE integration but somewhat eases the use of TortoiseSVN from Visual Studio. 
- VisualSVN,看起来不错,但不是免费的。它是作为低级 VS 包扩展实现的。有人使用它吗? 
- AnkhSVN,它是免费的,但我听说它有点问题。它是作为 VS 插件扩展实现的。有人使用它吗?您遇到问题了吗?编辑:2.0 版本是完全重写,似乎解决了我听说过的问题(与 1.x 版本有关) 
- 编辑:TortoiseSVN+ Mindscape 的 FileExplorer VS Extension,这不是真正的 IDE 集成,但在某种程度上简化了 Visual Studio 中 TortoiseSVN 的使用。 
Edit: I've found a few comparison posts between AnkhSVN and VisualSVN here, hereand here.
回答by thaBadDawg
I've used AnkhSVN for the past year and I've never had a problem with it. I switch between that and TFS and some of the times I think I prefer AnkhSVN to TFS.
过去一年我一直在使用 AnkhSVN,我从来没有遇到过问题。我在 TFS 和 TFS 之间切换,有时我认为我更喜欢 AnkhSVN 而不是 TFS。
回答by user39603
I use VisualSVN and it works great, but you're correct, it's not free. No experience with Ankh here.
我使用 VisualSVN 并且效果很好,但是您说得对,它不是免费的。这里没有使用 Ankh 的经验。
回答by aku
Early versions (1.X) of AnkhSVN were pretty unstable. Latest builds (v2.0.x) work as a native VisualStudio source control provider and it's very stable. I would recommend you to just download and try it yourself.
AnkhSVN 的早期版本 (1.X) 非常不稳定。最新版本 ( v2.0.x) 作为本机 VisualStudio 源代码控制提供程序工作,并且非常稳定。我建议您只下载并自己尝试。
回答by David A Gibson
I also use AnkhSVN and it does work OK but I tend to drop to the file system to work with TortoiseSVN. For some reason I feel safer using Tortoise. I think that come's from concerns about Visual Studio than it is AnkhSsvn.
我也使用 AnkhSVN,它确实可以正常工作,但我倾向于使用文件系统来使用 TortoiseSVN。出于某种原因,我觉得使用 Tortoise 更安全。我认为这来自对 Visual Studio 的担忧,而不是 AnkhSsvn。
回答by M4N
I tried AnkhSVN, but didn't like it. It tried to do too many things automatically and behind the scenes (e.g. adding files to SVN). I prefer if I see exactly what happens.
我试过 AnkhSVN,但不喜欢它。它试图在幕后自动做太多事情(例如,将文件添加到 SVN)。我更喜欢如果我确切地看到会发生什么。
Now I mainly use TortoiseSVN (outside Visual Studio) or sometimes Mindscape VS FileExplorerin Visual Studio (which is available for free).
现在我主要使用 TortoiseSVN(在 Visual Studio 之外)或有时在 Visual Studio 中使用Mindscape VS FileExplorer(可免费获得)。
Note: VS FileExplorer plugin simply displays a file explorer in VS and allows you to invoke TortoiseSVN from there (and it also displays the TortoiseSVN overlay icons).
注意:VS FileExplorer 插件只是在 VS 中显示一个文件浏览器,并允许您从那里调用 TortoiseSVN(并且它还显示 TortoiseSVN 覆盖图标)。
Update:
更新:
I reinstalled the current version of AnkhSVN 2.0.5250 and tried to reproduce the problems described above in a sample solution.
我重新安装了当前版本的 AnkhSVN 2.0.5250 并尝试在示例解决方案中重现上述问题。
Result: AnkhSVN did exactly what I expected. I was not able to reproduce any of the problems. I think it might be time to give AnkhSVN another try at work!
结果:AnkhSVN 完全符合我的预期。我无法重现任何问题。我认为是时候让 AnkhSVN 再次尝试工作了!
Update 2:
更新2:
I have now used AnkhSVN for some days, and I have to say it works very well. It's a big improvement compared to the previous version (1.x).
我现在已经使用 AnkhSVN 好几天了,不得不说效果很好。与之前的版本 (1.x) 相比,这是一个很大的改进。
回答by lc.
I use AnkhSVN and haven't had any issues worth complaining about. Sometimes (about 1 in 10 times?) I do get a strange nondescript error trying to commit, but restarting VS has always fixed the problem.
我使用 AnkhSVN 并且没有任何值得抱怨的问题。有时(大约 10 次中有 1 次?)我确实在尝试提交时遇到了一个奇怪的非描述性错误,但重新启动 VS 总是可以解决问题。
Edit: The error actually seems to be coming from the dataset designer, not AnkhSVN. Sometimes I get an error where it tries to "read or write to protected memory", which then just continues until I restart VS. Sorry for the confusion.
编辑:错误实际上似乎来自数据集设计器,而不是 AnkhSVN。有时我会收到一个错误,它尝试“读取或写入受保护的内存”,然后一直持续到我重新启动 VS。对困惑感到抱歉。
回答by James Jones
I have used both AnkhSVN and VisualSVN each for about 6 months. I prefer VisualSVN for one reason alone: Compatibility.
我分别使用 AnkhSVN 和 VisualSVN 大约 6 个月。我更喜欢 VisualSVN 仅一个原因:兼容性。
At my work, we keep our Subversion server and TortoiseSVN software very up-to-date (some people just go with one version and stick with it for years, but that's not our style). With new versions sometimes comes new working copy formats and it seems that AnkhSVN is very slow to adapt these new formats. What happens at this point is AnkhSVN completely breaks:
在我的工作中,我们使 Subversion 服务器和 TortoiseSVN 软件保持最新状态(有些人只使用一个版本并坚持使用多年,但这不是我们的风格)。新版本有时会带来新的工作副本格式,而 AnkhSVN 似乎适应这些新格式的速度非常慢。此时发生的事情是 AnkhSVN 完全崩溃:
- All the source files appear as "Added" even though they are all committed.
- We are no longer able to Commit. An error appears claiming it does not recognize the new format.
- 所有源文件都显示为“已添加”,即使它们都已提交。
- 我们不再能够提交。出现错误,声称它无法识别新格式。
VisualSVN has been "on the ball" in this respect as we have never had any compatibility issues with their software. This factor alone easily swayed me toward VisualSVN.
VisualSVN 在这方面一直处于“领先地位”,因为我们从未遇到过与他们的软件的任何兼容性问题。仅这个因素就很容易让我转向 VisualSVN。
回答by Blake7
回答by Sam Cogan
Another vote for visual SVN. To be honest, I think its just me being lazy. I could do everything visual svn does with just using tortoise, but it saves me from switching between programs. The color coded warning lights you get with visual svn are nice, but not that big a deal.
对视觉 SVN 的另一票。老实说,我认为只是我懒惰。我可以只使用 tortoise 来完成visual svn 所做的一切,但它使我免于在程序之间切换。使用visual svn 获得的彩色编码警告灯很不错,但没什么大不了的。
回答by gbanfill
I use VisualSvn and it's fine. It wasn't expensive and it helps make sure you include all files you've added to the solution. It's not so good when using locking in svn (but then svn isn't great at locking files). If you want to edit a file that has needs-lock set, it will automatically update it when you lock it (sensible), but that could end up doing an update when you dont want it too.
我使用 VisualSvn,它很好。它并不昂贵,而且有助于确保您包含已添加到解决方案中的所有文件。在 svn 中使用锁定时不太好(但是 svn 不太擅长锁定文件)。如果你想编辑一个设置了需要锁定的文件,它会在你锁定它时自动更新它(明智的),但是当你不想要它时,这可能最终会进行更新。
I've got into trying Svn Monitortoo and am happy with that, but it does seem to grind my computer to a halt.
我也开始尝试使用Svn Monitor并且对此感到满意,但它似乎确实让我的计算机停止了运行。
I've tried old versions of ANKH but got in a mess and corrupted the svn repository (I suspect that was version 1.x) so I'd guess later versions are better.
我已经尝试过旧版本的 ANKH 但陷入混乱并损坏了 svn 存储库(我怀疑是 1.x 版)所以我猜以后的版本会更好。

