5YrsLaterDBA
5YrsLaterDBA

Reputation: 34730

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

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,

Upvotes: 13

Views: 10699

Answers (3)

Ashwin Rajaram
Ashwin Rajaram

Reputation: 116

  1. In the solution explorer, right-click on the project and choose 'Properties'Choose properties
  2. In the applicaiton tab, you can find the type of project in 'Output type'

Look at Output type

Upvotes: 2

Jonathan Bates
Jonathan Bates

Reputation: 1835

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.

Upvotes: 0

ChrisF
ChrisF

Reputation: 137108

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

Upvotes: 14

Related Questions