vs里 .sln和.suo 文件

来源:互联网 发布:印度农民知乎 编辑:程序博客网 时间:2024/04/30 04:36

转载自:http://blog.csdn.net/zkzk12345/article/details/6546389

Net解决方案下 .sln文件和.suo文件的解释:


When a Web site is created, a solution file (.sln) and a hidden solution user options file (.suo) are created. By default, these files are created in the My Documents/Visual Studio 2005/Projects folder. bcoz they are not required in the deployed website.

SLN ( own's the following details):

    * A list of the projects that are to be loaded into Visual Studio 2005
    * A list of project dependencies
    * Microsoft Visual SourceSafe information
    * A list of add-ins that are available 

SUO ( own's the following files):

    * The task list
    * Debugger break points and watch window settings
    * Visual Studio window locations 



    

        Visual Studio.NET采用两种文件类型(.sln.suo)来存储特定于解决方案的设置,它们总称为解决方案文件。为解决方案资源管理器提供显示管理文件的图形接口所需的信息
从而在每次继续开发任务时,不会因开发环境而分散精力;

       *.sln:(Visual Studio.Solution) 通过为环境提供对项目、项目项和解决方案项在磁盘上位置的引用,可将它们组织到解决方案中。比如是生成Debug模式,还是Release模式,是通用CPU还是专用的等.

       ps:就是打开文件的索引,正确引导你进入环境,进入工程!


       *.suo: (solution user opertion) 解决方案用户选项记录所有将与解决方案建立关联的选项,
以便在每次打开时,它都包含您所做的自定义设置。比如VS布局,项目最后编译的而又没有关掉的文件(下次打开时用)
    

        ps:大概就是保存一些与代码本身无关的一些配置.


       *.suo 是一种文件的格式。它是很重要的文件,

       *.suo 解决方案用户选项,记录所有将与解决方案建立关联的选项,以便在每次打开时,它都包含用户所做的自定义设置。

       它储存了用户界面的自定义配置,包括布局断点项目最后编译的而又没有关掉的文件(下次打开时用)等,以便于下一次你打开Visual Studio可以恢复这些设置,因此不要随便删除,所以不要管它们。 其实上面英文中解释已经很清楚了,要申明的是PDB中不带断点信息.  

  其中,VS布局包括:监视器1234的变量列表、断点标记及开关状态、输出窗口错误窗口等的分布及其悬浮状态,还有项目卸载状态标记。 
  *.suo文件偶尔会被破坏,从而在构建和编辑应用程序时出现意想不到的结果。如果Visual Studio对于每个解决方案不稳定,就应删除.suo文件。下次打开解决方案时,Visual Studio重建它。


0 0
原创粉丝点击