如何在Visual Studio中确定项目类型 [英] How to determine the project type in visual studio

查看:121
本文介绍了如何在Visual Studio中确定项目类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Visual Studio中确定项目的类型"?

How can you determine the "type" of a project in Visual Studio?

例如,如果一个项目是一个类库,一个Web应用程序项目,一个WinForms项目,一个WCF项目等.这些图标在许多方面显然是不同的,但是在任何表明该项目类型的位置都有?

For example, if a project is a class library, a web application project, a WinForms project, a WCF project, etc. The icons are obviously different for a lot of them, but is there anywhere where it states the project type?

推荐答案

一个简单的技巧是将项目文件拖放到记事本中,您可以在其中看到这种东西< <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup>在此处输入代码 <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>在此处输入代码 <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>

One simple trick is drag and drop project file in notepad and where you can see this kind of stuff< <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup>enter code here <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 code here <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>

将"ProjectTypeGuid"与此链接进行比较.通过更改此指南,您可以将wpf窗口添加到winforms项目.

Compare "ProjectTypeGuid" with this Link. by changing this guids you can add wpf window to winforms project.

这篇关于如何在Visual Studio中确定项目类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆