Should a .sln be committed to source control?

后端 未结 15 1453
时光说笑
时光说笑 2020-12-23 20:17

Is it a best practice to commit a .sln file to source control? When is it appropriate or inappropriate to do so?

Update There were several good poin

相关标签:
15条回答
  • 2020-12-23 20:54

    Under most circumstances, it's a good idea to commit .sln files to source control.

    If your .sln files are generated by another tool (such as CMake) then it's probably inappropriate to put them into source control.

    0 讨论(0)
  • 2020-12-23 20:54

    We keep or solution files in TFS Version Control. But since or main solution is really large, most developers have a personal solution containing only what they need. The main solution file is mostly used by the build server.

    0 讨论(0)
  • 2020-12-23 20:57

    Yes - Everything used to generate your product should be in source control.

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