How do you specify a Visual Studio project type from an existing Visual Studio project

Using Visual Studio 2005.

Is there anything in the .sln or .vcproj files (or elsewhere) that defines the type / subtype of the project?

Edit: I mean, when you create a project, first select the language (e.g. Visual C #), then the type of project (e.g. Windows), and then the subtype (e.g. console application).

Where is this information stored in VS files?

+90
visual-studio-2005
Mar 19 '09 at 1:47
source share
6 answers

Some further research and I found this:

INFO: List of known types of project commands .

My .sln file contains:

Visual studio 2005
Project ("{ FAE04EC0-301F-11D3-BF4B-00C04F79EFBC }") = "AddNumbers", "AddNumbers.csproj", "{2C81C5BB-E3B0-457E-BC02-73C76634CCD6}"

Link shows:

Project Type Description Project Type Guid
Windows (C #) { FAE04EC0-301F-11D3-BF4B-00C04F79EFBC }

So this is Windows C # and a subtype according to @HardCode's answer. In my case, this is the "Console Application".

+36
Mar 19 '09 at 19:28
source share

In the XML project files:

Console applications contain:

<OutputType>Exe</OutputType> 

WinForms applications contain:

 <OutputType>WinExe</OutputType> 
Projects

Library (.dll) contain:

 <OutputType>Library</OutputType> 

and DO NOT contain

 <ProjectTypeGuids> 

ASP.NET and WCF projects contain:

 <ProjectTypeGuids>{603c0e0b-db56-11dc-be95-000d561079b0};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids> <OutputType>Library</OutputType> 

GUIDs do something to determine exactly what type of project it has. The ones above were taken from an ASP.NET application. They also exist in WCF projects, and flipping a GUID can trick Vis Studio into changing the type of project when it opens.

+46
Mar 19 '09 at 3:14
source share

The .vproj file defines the type of project, for example, the following defines a C ++ project.

 <VisualStudioProject ProjectType="Visual C++" 

The project tag also includes a compiler version.

+5
Mar 19 '09 at 2:39
source share

Double-click “My Project” in Solution Explorer and look at “Application Type:” ComboBox. It tells you (and lets you change) the type of project.

+4
Mar 19 '09 at 2:47
source share

If you are interested in searching for project subtypes, that is, in the "Windows C # Project Category" category, check if this is a Windows Form or WPF application

Try adding a new element to the project, and it will show you the elements related to this type of project, as well as the default settings.

For example, if there is a WPF project, it shows WPF-related options, such as "Window", "User Control" Page "... In the case of a Window Form application," Window Form "is displayed, etc ......

+1
May 22 '12 at 20:30
source share

Follow: Solution Explorer → hover over your project item (not the project folder. Check the Properties view to see if you clicked on the folder or project) → Properties. Then all the information is available for the project.

0
Apr 18 '19 at 0:05
source share



All Articles