Which files in a Visual C# Studio project don't need to be versioned?

前端 未结 11 1083

I\'m new to Visual C# Studio (actually using the Express edition, but another developer is using the full version), and we are using version control (svn).

It\'s acc

相关标签:
11条回答
  • 2020-11-30 01:36

    Needed...

    *.sln - The solution file contains references to all the projects and dependencies between the projects.
    *.csproj - The project files themselves. These tell what files are included in the project, references, and the build steps for the project.

    Not...

    *.suo - This is a user settings file...

    0 讨论(0)
  • 2020-11-30 01:37

    Check this out - type visualstudio amd you will have a .gitignore file generated for you, also you can concatenate multiple languages/ide' ignore files together if you have a solution which contains multiple languages.

    0 讨论(0)
  • 2020-11-30 01:40

    Just to add, anything that gets regenerated at build time, should be excluded. For example, files generated from the prebuild event or in some cases a custom tool.

    0 讨论(0)
  • 2020-11-30 01:40

    I leave out the Visual Studio Solution User Options file (*.suo) and the binaries directories as they get recompiled everytime you build your solution (the bin and obj folders).

    0 讨论(0)
  • 2020-11-30 01:50

    .csproj defines the project structure. It is vital.

    This is what I add to my global ignore list in Tortoise SVN:

    *.suo *.user bin obj *.pdb *.cache *_svn *.svn *.suo *.user *.build-res TestResults _ReSharper*
    
    0 讨论(0)
提交回复
热议问题