Best practices for Subversion and Visual Studio projects

前端 未结 7 1565
花落未央
花落未央 2020-12-02 04:57

I\'ve recently started working on various C# projects in Visual Studio as part of a plan for a large scale system that will be used to replace our current system that\'s bui

相关标签:
7条回答
  • 2020-12-02 05:55

    Solution level:

    • add the .sln solution file
    • ignore the .suo solution user options file

    Project level:

    • add the .csproj, .vbproj (and c++ proj?) files
    • ignore the .csproj.user, .vbproj.user files
    • ignore the bin directory
    • ignore the obj directory
    • ignore any files/directories that get generated during runtime (ie. logs)

    If you use and VS addins, they may generate files that also need ignoring (ie. ReSharper generates .resharper and .resharper.user files).

    The ignore items can either be ignored explicitly by filename (ie. MyProject.csproj), or by a wildcard pattern (ie. *.csproj.user).


    Once you have your ignores set up, checking out a clean copy of your source then building should then show no modifications (ie. no new unversioned files).

    0 讨论(0)
提交回复
热议问题