Which Visual C++ file types should be committed to version control?

后端 未结 8 987
我寻月下人不归
我寻月下人不归 2020-12-02 03:59

Which Visual Studio \\ Visual C++ file types should be committed to version control?
In my project I have the following file types:

aps
cpp
exe
filters
h         


        
8条回答
  •  自闭症患者
    2020-12-02 04:16

    As suggested by Microsoft, filetypes that should be included in version control:

    .mak, .dsp, .c, .rc, .rc2, .ico, .bmp, .txt, .def, .hpj, .bat, .rtf, .odl, .inf, .reg, .cnt, .cpp, .cxx, .h, .hpp, .hxx, .inl, .tpl, .vtp, and .mst...

    Filetypes that shouldn't be included in:

    .pch, .mdp, .ncb, .clw, .obj, .exe, .aps, .cpl, .awk, .exp, .lib, .idb, .opt, .pdb, .map, .res, .ilk, .scc, .bsc, .sbr, .dll, and .tlb...

    But in case using an external tool in exe file or external library then I think it should also be included in version control

    INFO: Which Visual C++ Files to Add to Source-Code Control

    In addition, this link describes the File Types for Visual C++ Projects in Visual Studio 2017.

提交回复
热议问题