请教各位高手在.NET中.SLN和.CSPROJ有什么异同。
就是我的项目是vs2003的 .SLN和.CSPROJ都有
但是我用vs2005编译后发现工程文件下只剩下.SLN,是什么原因。

解决方案 »

  1.   

    一个项目文件,一个是解决方案文件,一个解决方案可以包含多个项目,可以没有sln,但不能没有proj
      

  2.   

    web 项目可以有, 也可以没有 csproj, 看你创建的何种类型的 web 项目其他项目类型要有.没有 csproj 的 web 项目, 配置信息在 sln 文件内, 可以打开观赏.
      

  3.   

    那个是类似这样的:Microsoft Visual Studio Solution File, Format Version 9.00
    # Visual Studio 2005
    Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "E:\...\DemoWeb\", "DemoWeb\", "{5D630C74-CEDB-11DA-9F92-00055D86069E}"
    ProjectSection(WebsiteProperties) = preProject
      References = "MagicAjax.dll;log4net.dll"
    Debug.AspNetCompiler.VirtualPath = "DemoWeb"
    Debug.AspNetCompiler.PhysicalPath = "DemoWeb"
    Debug.AspNetCompiler.TargetPath = "Demo"
    Debug.AspNetCompiler.Updateable = "true"
    Debug.AspNetCompiler.ForceOverwrite = "true"
    Debug.AspNetCompiler.FixedNames = "false"
    Debug.AspNetCompiler.Debug = "True"
    Release.AspNetCompiler.VirtualPath = "DemoWeb"
    Release.AspNetCompiler.PhysicalPath = "DemoWeb"
    Release.AspNetCompiler.TargetPath = "Demo"
    Release.AspNetCompiler.Updateable = "true"
    Release.AspNetCompiler.ForceOverwrite = "true"
    Release.AspNetCompiler.FixedNames = "false"
    Release.AspNetCompiler.Debug = "False"
    VWDPort = "1041"
    EndProjectSection
    EndProject
      

  4.   

    web的没有proj的应该不是项目,是网站吧?
      

  5.   

    不带 csproj 的 web 项目是 vs 2005 的原生类型带有 csproj 的是在 vs 2005 sp1 才不得不加入的
    vs 支持的项目类型, c#, vb, vc, web, 每个类型都有一个 guid 表示, 而带有 csproj 的 web 项目居然是两个 guid 加起来的, 十分变态啊