How do you tell the Visual Studio project type from an existing Visual Studio project

后端 未结 9 1172
孤独总比滥情好
孤独总比滥情好 2020-11-27 14:04

Using Visual Studio 2005.

Is there anything in the .sln or .vcproj files (or anywhere else) that defines the project type / subtype?

Edit: What I mean is th

9条回答
  •  有刺的猬
    2020-11-27 14:16

    In the project XML files:

    Console applications contain:

    Exe
    

    WinForms applications contain:

    WinExe
    

    Library (.dll) projects contain:

    Library
    

    and do NOT contain a

    
    

    ASP.NET and WCF projects contain:

    {603c0e0b-db56-11dc-be95-000d561079b0};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}
    Library
    

    The GUIDs do something to define exactly what type of project it is. The ones above were taken from an ASP.NET app. They exist in WCF projects too, and flipping around the GUIDs can fool Vis Studio into changing the project type when you open it.

提交回复
热议问题