How to determine the project type in visual studio

前端 未结 5 1911
一生所求
一生所求 2020-12-02 14:23

How can you determine the \"type\" of a project in Visual Studio?

For example, if a project is a class library, a web application project, a WinForms project, a WCF

5条回答
  •  天涯浪人
    2020-12-02 14:45

    Programmatically, using the EnvDTE namespace, you can investigate the Project.Kind property of the Visual Studio project.

    However, if you're interested in a more detailed, the project specification file, i.e. the *.csproj, *.vbproj, among others describes the kind of the project in an XML way.

提交回复
热议问题