Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to know the project type of a VS C# project?

Tags:

.net

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,

like image 271
5YrsLaterDBA Avatar asked Jan 25 '10 23:01

5YrsLaterDBA


1 Answers

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)).

like image 158
ChrisF Avatar answered Oct 14 '22 08:10

ChrisF