对于.NET项目,我应该从源代码控制排除的文件扩展名?源代码、文件扩展名、项目、NET

2023-09-03 21:06:30 作者:冷月葬花魂

每次我开始一个项目,我必须仔细考虑哪些文件从源代码控制中排除。有人曾经改变的标准清单,以便我可以看看它从一开始?我对我自己的工作,所以我还没有得到全面的。 我AP preciate,在一个DLL的情况下,你会想包括一些并排除他人,所以它不只是依赖于文件扩展名。 我的项目是ASP.Net,虽然其他模板进行一般性讨论也将是有益的。

Everytime I start a project I have to think carefully about which files to exclude from source control. Has someone made a list of the criteria so I can look it up from the beginning? I work on my own so I have not got round to it. I appreciate that in the case of a DLL, you would want to include some and exclude others, so it is not just dependent on the file extension. My projects are ASP.Net, although a general discussion of other templates would also be useful.

推荐答案

从的 http://blog.goneopen.com/2009/06/git-excludes-for-dotnet/ :

.DS_Store
._*
TestResults
*Resharper*
**.ReSharper**
**\_ReSharper.**
*.bak
*.cache
*.resharperoptions
*.suo
*.user
*.vsprops
*/TestResults
*\bin*
*\obj*
_ReSharper.*