将多个 Microsoft Visual Studio 连接到相同的项目

Connect Multiple Microsoft Visual Studio to same projects

我和我的几个朋友将开始从事 C# 数据库项目。我们将使用 Microsoft VS 2015 和 SQL Server 2014。我们的 Visual Studio(安装在不同的笔记本电脑上)有什么方法可以连接到同一个项目吗?

例如,如果我的一位朋友从项目中删除了一个 class,则该 class 也应该从我们的项目中删除。此外,如果他添加了一些内容,那么该更改也应该显示在我们的 VS 解决方案中。

如果您在 Visual studio 中有数据库项目,您应该将其连接到某个版本控制。之后,您朋友所做的每项更改都将 fetch/pull 在您的本地计算机上,您将执行 db 项目。主项目中的代码更改也是如此。阅读有关 svn 和 git 的信息,然后选择更适合您的内容。

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Getting your project on GitHub

Subversion is a free/open source version control system (VCS). That is, Subversion manages files and directories, and the changes made to them, over time. This allows you to recover older versions of your data or examine the history of how your data changed. In this regard, many people think of a version control system as a sort of “time machine.”

Subversion can operate across networks, which allows it to be used by people on different computers. At some level, the ability for various people to modify and manage the same set of data from their respective locations fosters collaboration. Progress can occur more quickly without a single conduit through which all modifications must occur. And because the work is versioned, you need not fear that quality is the trade-off for losing that conduit—if some incorrect change is made to the data, just undo that change.

Some version control systems are also software configuration management (SCM) systems. These systems are specifically tailored to manage trees of source code and have many features that are specific to software development—such as natively understanding programming languages, or supplying tools for building software. Subversion, however, is not one of these systems. It is a general system that can be used to manage any collection of files. For you, those files might be source code—for others, anything from grocery shopping lists to digital video mixdowns and beyond.

Importing Data Into A Repository SVN

如果你不了解 git/svn 我建议你使用 SVN,它很容易理解。 Git 当您的团队非常庞大且开源时,它有他的优势。目前 git 是版本控制中的 "future"。

团队基础

You can use Team Foundation Version Control (TFVC) to scale from small to large projects, and by using server workspaces, you can scale up to very large codebases with millions of files per branch and large binary files. TFVC is a centralized version control system that lets you apply granular permissions and restrict access down to a file level. Because your team checks in all their work into your Team Foundation server, you can easily audit changes and identify which user checked in a changeset. By using compare and annotate you can identify the exact changes that they made.

https://www.visualstudio.com/tfs/

GitLab

GitLab Inc. is a company based on the GitLab open-source project. GitLab is an application to code, test, and deploy code together. It provides Git repository management with fine grained access controls, code reviews, issue tracking, activity feeds, wikis, and continuous integration.

https://about.gitlab.com/

Bitbucket

Bitbucket is a web-based hosting service for projects that use either the Mercurial (since launch) or Git (since October 2011) revision control systems. Bitbucket offers both commercial plans and free accounts. It offers free accounts with an unlimited number of private repositories (which can have up to five users in the case of free accounts) as of September 2010, but by inviting three users to join Bitbucket, three more users can be added, for eight users in total. Bitbucket is written in Python using the Django web framework.

https://www.atlassian.com/software/bitbucket