Alex Rivera | Logout

How to determine the project type in Visual Studio?

Asked 2009-06-23T11:21:02.460
69

How can one 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 project, etc. The icons are obviously different for a lot of them, but is there anywhere where it states the project type?

Edit
Report

1 Answer

2

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.

answered 2009-06-23T11:25:35.277

Your Answer