Joined a project a week ago. We use Visual Studio 2008 for C#. How do I know the VS project type (Windows Forms Application, WPF Application, Console Application, ...) of the existing project from its property? thanks,
Asked
Active
Viewed 9,172 times
3 Answers
14
In the .csproj file there's a property <OutputType>
Winform/WPF:
<OutputType>WinExe</OutputType>
Console:
<OutputType>Exe</OutputType>
Dll (including web applications):
<OutputType>Library</OutputType>
Which gets you part of the way there. To get the definitive answer you could then look for other properties or components which you know to be unique to the project (xaml files in a WPF application for example (thanks JMD)).

ChrisF
- 134,786
- 31
- 255
- 325
-
do you have a longer list of the values for different projects? – 5YrsLaterDBA Jan 25 '10 at 23:21
-
@5YrsLaterDBA - no, sorry. I just posted what I happen to have on my machine at the moment. – ChrisF Jan 25 '10 at 23:22
-
@ChrisF's answer is great! However, if you want a more detailed answer, check out this post: https://stackoverflow.com/questions/660790/how-do-you-tell-the-visual-studio-project-type-from-an-existing-visual-studio-pr – Ninja May 06 '18 at 17:31
-
@Ninja please flag the question as a duplicate. – ChrisF May 06 '18 at 18:33
1

Ashwin Rajaram
- 86
- 2
0
You could look at the icons in the Solutions Explorer, but I find those to be too small.
You could also find the .csproj files. If you view them with a text editor, there is a node called <OutputType>
that can give you some insight.

gunr2171
- 16,104
- 25
- 61
- 88

Jonathan Bates
- 1,835
- 14
- 22