源代码管理中的 .vcxproj [英] .vcxproj in source control

查看:32
本文介绍了源代码管理中的 .vcxproj的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我阅读了很多关于是否应将 vcxproj 文件添加到源代码管理的问题.共识似乎是他们应该,但在打开文件时,我注意到其中包含很多用户特定的路径.

I have been reading lots of questions regarding whether vcxproj files should be added to source control or not. The consensus seems to be that they should, but when opening the files I noticed that there are a lot of user specific paths contained within.

鉴于这是一个由许多人共同开发的项目,我是否仍应将其添加到源代码管理中?好像会和别人的设置冲突.

Seeing as this is a project that is being worked on by a number of people, should I still add it to source control? It seems like it would clash with other peoples' setups.

推荐答案

当然需要添加到源代码管理中,.vcxproj 项目文件.引用 MSDN:

Of course they need to be added to source control, .vcxproj is the project file. Quoting MSDN:

项目文件不再使用 .vcproj 文件扩展名.视觉的Studio 会自动转换由开发人员创建的项目文件早期版本的 Visual C++ 使用的格式当前系统.有关如何手动升级一个项目,请参阅/Upgrade (devenv.exe).

Project files no longer use the .vcproj file name extension. Visual Studio automatically converts project files that were created by an earlier release of Visual C++ to the format that is used by the current system. For more information about how to manually upgrade a project, see /Upgrade (devenv.exe).

在当前版本中,项目文件的文件扩展名是.vcxproj.

In the current release, the file name extension for a project file is .vcxproj.

另一方面,.vcxproj.user 文件不需要添加到源代码管理中.上面的链接还描述了每个文件所包含的内容.

The .vcxproj.user files, on the other hand, do not need to be added to source control. The link above describes what each of these files contain as well.

这篇关于源代码管理中的 .vcxproj的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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