Version Control in Visual Studio

独自空忆成欢 提交于 2019-12-21 12:14:08

问题


I'm currently working on a large project, and am about to make some large changes, and was looking for a way to 'backup' my prior work. Is there built in functionality in Visual Studio to work with version control?

This project is developed only by me, and doesn't use Team Foundation Server (which is what most of my googling seems to give me answers on). Ideally, I would like to identify and restore all the different versions of my program as it evolves, without having to worry about totally messing something up...

Cheers and thanks in advance!

---EDIT--- With a version control system though, would that be stored on a seperate server? Or is it possible to store it locally? I'm more just concerned that I will just seriously mess up my code and not be able to undo it at some point...


回答1:


There are several third-party source control integration tools, such as AnkhSVN or VisualSVN for SVN repositories (I use the former and can gladly recommend it). As far as "built-in", Visual Studio supports Team Foundation Server and Visual Source Safe out of the box, but those are both paid products and VSS should be avoided (in my opinion) for any new work.

Personally, I use TortiseSVN (for Windows integration) and AnkhSVN (for VS integration) with our SVN repository. There are free SVN servers as well, so you can get by with a very good solution while paying $0.




回答2:


Well, there are a number of free source control alternatives out there and there are plug-ins (free ones) into Visual Studio that will allow you to hook right in. Take a look at those links and pick one that works for you!




回答3:


Visual Studio has the ability to work with many source control providers. You simply have to hook them up.

Use "Tools->Options->Source Control->Plug-in Selection".




回答4:


TFS is really expensive, especially for just you. You can use VisualSVN.




回答5:


it is a free download to us ANkhsvn. It is a plugin for visual studio that connects to various source control severs. You would first have to have a subversion server setup somewhere. Which is easy enough to do.




回答6:


There is no built-in Version Control System in VS.NET, however, VS.NET supports multiple version control systems, like TFS, Visual Sourcesafe, SourceGear vault , etc...




回答7:


As you state, you need a version control system. Look at this answer on selecting a Version Control System.




回答8:


You may be able to use git with VS which means you don't need another dir/server etc for the repo. Consider Using Git with Visual Studio




回答9:


There are many version management systems. A lot of them are expensives, but... the are many others that are free! Take a look here: http://producingoss.com/en/vc-systems.html

You can use SVN (Subversion) - one of the most used widely.



来源:https://stackoverflow.com/questions/4609483/version-control-in-visual-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!