其他项目出现在“新建项目"对话框中 [英] Additional Project appears in New Project Dialog

查看:63
本文介绍了其他项目出现在“新建项目"对话框中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们创建了VSPackage,其中包含几个项目.项目注册按以下方式进行.

We have created VSPackage which is having couple of projects. Registration of projects are done in following manner.

[ProvideProjectFactory(typeof(CustomProjectFactory),"CustomProject",自定义项目文件(* .csproj); *.csproj",null,null,null,LanguageVsTemplate ="CSharp",NewProjectRequireNewFolderVsTemplate = true,TemplateGroupIDsVsTemplate ="Web",TemplateIDsVsTemplate =" CustomProject")]

[ProvideProjectFactory(typeof(CustomProjectFactory), "CustomProject", "Custom Project Files (*.csproj);*.csproj", null, null, null, LanguageVsTemplate = "CSharp", NewProjectRequireNewFolderVsTemplate = true, TemplateGroupIDsVsTemplate = "Web", TemplateIDsVsTemplate = "CustomProject")]

构建解决方案并使用VSIX安装VSPackage,在CSharp的同一级别的新建项目"对话框中添加了一个额外的项目.该项目显示位于C:\ Program Files \ Microsoft Visual Studio 10.0 \ Common7 \ IDE的所有exe.

Building the solution and installing VSPackage using VSIX, adds one extra project in New Project Dialog at the same level of CSharp. This project display all exe located at C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE.

如果我们从Experiment Hive中打开Visual Studio,则它不会显示该额外项目.

If we open Visual Studio from Experimental Hive then it does not display this extra project.

作为VSIX安装的一部分,如下所示创建了一个注册表项,其中GUID是VSPackage Guid.

As a part of VSIX installation, one registry entry created like below, where GUID is a VSPackage Guid.

HKEY_CURRENT_USER \ Software \ Microsoft \ VisualStudio \ 10.0_Config \ NewProjectTemplates \ TemplateDirs \ {D6F28A6F-CC89-4D98-BE8A-DFB5A2A632AF} \/1

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0_Config\NewProjectTemplates\TemplateDirs\{D6F28A6F-CC89-4D98-BE8A-DFB5A2A632AF}\/1

在键上方,有一个注册表项(默认),其值为"CustomProject".如果我手动删除此键,则新建项目"对话框下将不会显示其他  CustomProject条目.

Under above key there is a registry entry (Default) with Value as "CustomProject". If i remove this key manually than additional  CustomProject entry will not appear under New Project Dialog.

我想知道为什么会自动创建此注册表项以及如何限制它.

I would like to know why this registry entry automatically created and how to restrict that.

 

 

 

 

 

推荐答案

在这里,我对您的问题的描述不太了解.

I don't quite understand the description of your problem here.

ProvideProjectFactory属性将在.pkgdef文件中放置一个条目.部署到Exp实例时,是否正在查看/使用其他.pkgdef文件?

The ProvideProjectFactory attribute will place an entry in your .pkgdef file. Are you seeing/using a different .pkgdef file when you deploy to the Exp instance?

您可以在此处阐明所需的行为吗?您能否阐明额外项目"的含义?

Can you clarify what the desired behavior needs to be here? Can you clarify what you mean by "Extra Project"?

谢谢

 


这篇关于其他项目出现在“新建项目"对话框中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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