which type of VS files should be committed into a version control system

which type of VS files should be committed into a version control system?

  • aps, no: last resource editor state
  • cpp, yes: source code
  • exe, no: build result
  • filters, yes: project file
  • h, yes: source code
  • ico, yes: resource
  • idb, no: build state
  • ipch, no: build helper
  • lastbuildstate, no: build helper
  • lib, no: build result. Can be 3rd party
  • log, no: build log
  • manifest, no: build helper. Can be written yourself.
  • obj, no: build helper
  • pch, no: build helper
  • pdb, no: build result
  • rc, yes: resource script
  • rc2, yes: resource script
  • res, no: build helper
  • sdf, no: intellisense dbase
  • sln, yes: project file
  • tlog, no: build log
  • txt, yes: project element
  • user, no: debug settings. Do preserve if just one dev or custom debug settings
  • vcxproj: yes: project file

from VC的IDE使用技巧大全:
------------------------------
opt 工程关于开发环境的参数文件。如工具条位置等信息;

.aps (AppStudio File),资源辅助文件,二进制格式,一般不用去管他.

.clw ClassWizard信息文件,实际上是INI文件的格式,有兴趣可以研究一下.有时候ClassWizard出问题,手工修改CLW文件可以解决.如果此文件不存在的话,每次用ClassWizard的时候绘提示你是否重建.

.dsp (DeveloperStudio Project):项目文件,文本格式,不过不熟悉的话不要手工修改.DSW(DeveloperStudio Workspace)是工作区文件,其他特点和DSP差不多.

.plg 是编译信息文件,编译时的error和warning信息文件(实际上是一个html文件),一般用处不大.在Tools->Options里面有个选项可以控制这个文件的生成.

.hpj (Help Project)是生成帮助文件的工程,用microsfot Help Compiler可以处理.

.mdp (Microsoft DevStudio Project)是旧版本的项目文件,如果要打开此文件的话,会提示你是否转换成新的DSP格式.

.bsc 是用于浏览项目信息的,如果用Source Brower的话就必须有这个文件.如果不用这个功能的话,可以在Project Options里面去掉Generate Browse Info File,可以加快编译速度.

.map 是执行文件的映像信息纪录文件,除非对系统底层非常熟悉,这个文件一般用不着.

.pch (Pre-Compiled File)是预编译文件,可以加快编译速度,但是文件非常大.

.pdb (Program Database)记录了程序有关的一些数据和调试信息,在调试的时候可能有用.

.exp 只有在编译DLL的时候才会生成,记录了DLL文件中的一些信息.一般也没什么用.

.ncb 无编译浏览文件(no compile browser)。当自动完成功能出问题时可以删除此文件。build后会自动生成。

参考:

http://stackoverflow.com/questions/3922660/which-visual-c-file-types-should-be-committed-to-version-control

http://blog.csdn.net/icycoffee/article/details/1670452

原文地址:https://www.cnblogs.com/dlbrant/p/3179467.html