如何确定 Visual Studio 中项目的“类型”?
例如,如果一个项目是一个类库、一个Web应用程序项目、一个WinForms项目、一个WCF项目等。其中很多项目的图标明显不同,但是否有任何地方表明项目类型?
最佳答案
一个简单的技巧是将项目文件拖放到记事本中,您可以在其中看到此类内容<
<?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”与此 Link 进行比较。通过更改此 GUID,您可以将 WPF 窗口添加到 WinForms 项目。
关于visual-studio - Visual Studio中如何判断项目类型?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1031952/