如何从现有的 Visual Studio 项目中辨别 Visual Studio 项目类型 [英] How do you tell the Visual Studio project type from an existing Visual Studio project

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

问题描述

使用 Visual Studio 2005.

.sln 或 .vcproj 文件(或其他任何地方)中是否有任何内容定义了项目类型/子类型?

我的意思是当你创建一个项目时,你首先选择一种语言(例如 Visual C#),然后是项目类型(例如 Windows),然后是子类型(例如控制台应用程序).

此信息存储在 VS 文件中的何处?

解决方案

一些进一步的研究,我发现了这个:

信息:已知项目类型指南列表.

我的 .sln 文件包含:

Visual Studio 2005
项目("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AddNumbers", "AddNumbers.csproj", "{2C81C5BB-E3B0-457E-BC02-73C76634pcc6}">

链接显示:

项目类型说明 项目类型指南
Windows (C#) {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}

所以它是 Windows C#,子类型按照@HardCode 的回复.就我而言,它是控制台应用程序".

Using Visual Studio 2005.

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

Edit: What I mean is that when you create a project, you first choose a language (e.g. Visual C#), then a project type (e.g. Windows) and then a subtype (e.g. Console Application).

Where is this information stored within the VS files?

解决方案

Some further research and I found this:

INFO: List of known project type Guids.

My .sln file contains:

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

The link shows:

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

So it's Windows C# and the subtype is as per @HardCode's reply. In my case, it's "Console Application".

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

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