What should be contained in a global source code control ignore pattern for Visual Studio 2010?

前端 未结 2 1251
Happy的楠姐
Happy的楠姐 2020-12-22 17:37

After installing and using Visual Studio 2010, I\'m seeing some newer file types (at least with C++ projects ... don\'t know about the other types) as compared to 2008. e.g

2条回答
  •  忘掉有多难
    2020-12-22 18:20

    For C++ projects, you should be fine ignoring the following files:

    • *.sdf and *.opensdf (temporary file opened only while .vcxproj/.sln is loaded to Visual Studio IDE)
    • *.suo
    • *.vcxproj.user
    • ipch folder, if your project uses Pre-compiled Headers (PCH); it is a storage for Intellisense compiler which can now utilise PCH for better performance

    For C# projects, it's also a good idea to ignore bin and obj directories, and *.suo too.

提交回复
热议问题