我应该将 Visual Studio 2015 .vs 文件夹添加到源代码管理吗? [英] Should I add the Visual Studio 2015 .vs folder to source control?

查看:26
本文介绍了我应该将 Visual Studio 2015 .vs 文件夹添加到源代码管理吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio 2015 创建一个名为.vs"的新文件夹.它的目的是什么,我应该将它添加到源代码管理中吗?

Visual Studio 2015 creates a new folder called ".vs". What is the purpose of it and should I add it to source control?

推荐答案

不,您不应将其添加到源代码管理中.此文件夹的目的是将特定于机器和用户的文件移动到中央位置.Visual Studio 上的说明用户语音问题很好地解释了这一点:

No, you should not add it to source control. The purpose of this folder is to move machine- and user-specific files to a central location. The explanation on the Visual Studio User Voice issue explains it well:

到目前为止,我们已将 .SUO 文件和 VB/C# 编译器 IntelliSense 数据库文件移动到新位置.所有新项目特定的机器本地文件也将添加到新位置.我们计划在未来的版本中更进一步,并正在研究如何改进构建输出和其他可能使源代码树混乱的现有文件的目录结构.

So far, we have moved the .SUO file and the VB/C# compiler IntelliSense database files to the new location. All new project specific, machine local files will be added to the new location too. We plan on taking this even further in future releases and are investigating how to improve the directory structure of build output and other existing files that can clutter the source tree.

这些都是您永远不会签入的文件,因为它们是从构建中生成的或包含特定于机器的信息.

These are all files that you would never check in, since they are generated from a build or contain machine-specific information.

这篇关于我应该将 Visual Studio 2015 .vs 文件夹添加到源代码管理吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆