Determine the type of project in a visual studio

How you can determine the "type" of a project in a visual studio.

For example, if the project is a class library, a web application project, a winforms project, a wcf project, etc. etc ... the icons are obviously different for many of them, but is there somewhere where it indicates the type of project?

+46
visual-studio-2008 visual-studio
Jun 23 '09 at 11:21
source share
3 answers

One simple trick is the drag and drop project file in notepad and where you can see this material << <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> enter the code <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">x86</Platform> <ProductVersion>8.0.30703</ProductVersion> <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>{27F8327B-239F-4125-809C-13FB6209D2E3}</ProjectGuid> <OutputType>WinExe</OutputType> enter here the code <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>WpfApplication1</RootNamespace> <AssemblyName>WpfApplication1</AssemblyName> <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> <TargetFrameworkProfile>Client</TargetFrameworkProfile> <FileAlignment>512</FileAlignment> <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <WarningLevel>4</WarningLevel> </PropertyGroup> <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>WpfApplication1</RootNamespace> <AssemblyName>WpfApplication1</AssemblyName> <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> <TargetFrameworkProfile>Client</TargetFrameworkProfile> <FileAlignment>512</FileAlignment> <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <WarningLevel>4</WarningLevel> </PropertyGroup>

Compare "ProjectTypeGuid" with this Link . By changing this rule, you can add the wpf window to the winforms project.

+26
Aug 09 '12 at 15:03
source share

Programmatically, using the EnvDTE namespace, you can explore the Project.Kind property of a Visual Studio project.

However, if you are interested in a more detailed description, the project specification file, i.e. *.csproj , *.vbproj , among others, describes the type of project using the XML method.

+2
Jun 23 '09 at 11:25
source share

I think that if you go to the properties window of your project, you will see the information following this image below.

enter image description here

Look at the type of output. It shows a class library. If your project shows a Windows application, then the exit is a Windows application.

0
Jul 20 '16 at 8:50
source share



All Articles