Why are there .sln, .suo and .csproj files?

前端 未结 4 821
名媛妹妹
名媛妹妹 2020-12-07 10:06

I began to use Visual Studio 2010. After I\'m done with the C# program, I see that there are .sln, and .suo files in the project root directory, an

4条回答
  •  無奈伤痛
    2020-12-07 10:54

    SLN (Solution) are the solution files. It stores info about the collection of projects that make up whatever you are developing. They contain projects, source control settings, or any other global level thing.

    CSProj(Project file) are the actual code projects (C# Libraries, WCF Services, etc). It stores information at the project level. It wraps all relevant References, Classess, etc..

    SUO (solution user options) are user settings files. Completely disposable, you can delete it and the most common thing you will lose are breakpoints.


    Push everything except the SUO settings files.

    Do not include any bin, debug, obj directory. The only DLLs (or compiled/generated object) you should include are those that are external to your application.

提交回复
热议问题