简体   繁体   English

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

[英]Connect Multiple Microsoft Visual Studio to same projects

Me and my couple of friends will start working on a C# database project.我和我的几个朋友将开始从事 C# 数据库项目。 We will use Microsoft VS 2015 and SQL Server 2014. Is there any way that our Visual Studio (installed on separate laptop) can connect to the same project?我们将使用 Microsoft VS 2015 和 SQL Server 2014。我们的 Visual Studio(安装在单独的笔记本电脑上)有什么办法可以连接到同一个项目?

For example, if one of my friends removes a class from the project, that class should also be removed from our project.例如,如果我的一个朋友从项目中删除了一个类,那么该类也应该从我们的项目中删除。 Also, if he adds something, that change should also be shown on our VS solution.此外,如果他添加了某些内容,该更改也应显示在我们的 VS 解决方案中。

If you have db project in Visual studio you should connect it to some version control.如果你在 Visual Studio 中有 db 项目,你应该将它连接到一些版本控制。 After that every change done by your friends will be fetch/pull on your local machine and you will execute the db project.之后,您的朋友所做的每项更改都将在您的本地机器上获取/拉取,您将执行 db 项目。 Same is for code changes in your main project.主项目中的代码更改也是如此。 Read about svn and git and choose what is better for you.阅读有关 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. Git 是一个免费的开源分布式版本控制系统,旨在快速高效地处理从小到大的所有项目。

Getting your project on GitHub 在 GitHub 上获取您的项目

Subversion is a free/open source version control system (VCS). Subversion 是一个免费/开源版本控制系统 (VCS)。 That is, Subversion manages files and directories, and the changes made to them, over time.也就是说,Subversion 会随着时间的推移管理文件和目录,以及对它们所做的更改。 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. Subversion 可以跨网络运行,这使得它可以被不同计算机上的人使用。 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.一些版本控制系统也是软件配置管理(SCM)系统。 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.然而,Subversion 不是这些系统之一。 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 将数据导入存储库 SVN

If you are not aware with git/svn I advise you to use SVN it is easy to understand.如果您不了解 git/svn,我建议您使用 SVN,它很容易理解。 Git has his advantages when your team is really big and for open source.当你的团队非常大并且开源时,Git 有他的优势。 Currently on this moment git is the "future" in version controls.目前,git 是版本控制中的“未来”。

Team Foundation团队基础

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.您可以使用 Team Foundation 版本控制 (TFVC) 从小型项目扩展到大型项目,并且通过使用服务器工作区,您可以扩展到非常大的代码库,每个分支有数百万个文件和大型二进制文件。 TFVC is a centralized version control system that lets you apply granular permissions and restrict access down to a file level. TFVC 是一个集中式版本控制系统,可让您应用精细权限并将访问限制到文件级别。 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.由于您的团队将他们的所有工作都签入到您的 Team Foundation 服务器,因此您可以轻松审核更改并确定哪个用户签入了变更集。 By using compare and annotate you can identify the exact changes that they made.通过使用 compare 和 annotate,您可以确定他们所做的确切更改。

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

GitLab GitLab

GitLab Inc. is a company based on the GitLab open-source project. GitLab Inc. 是一家基于 GitLab 开源项目的公司。 GitLab is an application to code, test, and deploy code together. GitLab 是一个用于一起编码、测试和部署代码的应用程序。 It provides Git repository management with fine grained access controls, code reviews, issue tracking, activity feeds, wikis, and continuous integration.它为 Git 存储库管理提供细粒度的访问控制、代码审查、问题跟踪、活动源、wiki 和持续集成。

https://about.gitlab.com/ 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 是一种基于 Web 的托管服务,适用于使用 Mercurial(自发布以来)或 Git(自 2011 年 10 月以来)版本控制系统的项目。 Bitbucket offers both commercial plans and free accounts. Bitbucket 提供商业计划和免费帐户。 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.截至 2010 年 9 月,它提供具有无限数量私人存储库的免费帐户(在免费帐户的情况下最多可以有五个用户),但是通过邀请三个用户加入 Bitbucket,可以添加三个用户,供八个用户使用总共。 Bitbucket is written in Python using the Django web framework. Bitbucket 是使用 Django Web 框架用 Python 编写的。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM