确定现有项目的项目类型 [英] Determine project type for existing project
问题描述
I我正在使用Visual Studio 2012和英特尔Visual Fortran Composer 2013.在创建新的英特尔Visual Fortran项目时,用户可以从以下Fortran项目类型中进行选择:
I am using Visual Studio 2012 with Intel Visual Fortran Composer 2013. When creating a new Intel Visual Fortran project, the user may select from the following Fortran project types:
- 控制台应用程序
- 空项目
- 主程序代码
- 动态链接库
- 带示例代码的动态链接库
- 静态图书馆
- QuickWin应用程序
- 标准图形应用程序
- ActiveX对话框代码
- ActiveX MDI代码
- ActiveX SDI代码
- 对话框代码
- 空项目
- MDI代码
- SDI代码
- 进程内服务器(DLL)
- 进程外服务器(EXE)
同样,在创建新的C ++项目时,用户可以从以下项目类型中进行选择:Likewise, when creating a new C++ project the user may select from the following project types:
- Visual C ++
- Win32控制台应用程序
- MFC应用程序
- Win32 Project
- 空项目
- Makefile Project
- ATL
- ATL项目
- 类库
- CLR控制台应用程序
- CLR空项目
- 空项目
- 自定义向导
- Makefile项目
- MFC应用程序
- MFC ActiveX控件
- MFC DLL
- 托管测试项目
- 本机单元测试项目
- Win32控制台应用程序
- Win32项目
我的问题是我已经是第三方提供给我的大型复杂解决方案。我想确定这个解决方案的项目类型。在VS2012中是否有办法确定项目类型 解决方案 之后 它是否已创建
?My problem is that I already a large, complex, solution provided to me by a 3rd party. I would like to determine the project type for this solution. Is there a way in VS2012 to determine the project type of a solution after it has been created?
推荐答案
Visual Studio项目有一个类型和可选的子类型(flavor)。两者都由项目文件中的Guids标识(ProjectTypeGuids条目)。参见:
Visual Studio projects have a type and optionally subtypes (flavors). Both are identified by Guids in the project file (ProjectTypeGuids entry). See:
HOWTO:从加载项中获取Visual Studio项目的项目风格(子类型)
但是你在帖子中列出的是项目"模板",而不是项目"类型"。可能所有项目模板都使用相同的guid进行Fortran项目。
But what you have listed in your post are project "templates", not project "types". Likely all the project templates use the same guid for Fortran projects.
因此,您需要找到项目模板的位置(对于VS 2017,它将是C:\Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Communmunity \ Common7 \\ \ n \\\\\\\\\\\\\\每个项目模板使用的文件和引用与项目使用的
文件和引用。So, you need to find the location of the project templates (for VS 2017 it would be C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\ProjectTemplates) and compare the files and references used by each project template with the files and references used by the project.
这篇关于确定现有项目的项目类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!