是什么决定了项目模板在上下文中是否可用? [英] What determines whether project templates are or are not available in context?

查看:73
本文介绍了是什么决定了项目模板在上下文中是否可用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将项目模板与GAT一起使用。我似乎无法确定项目模板何时或将不会显示在Add - >新项目。
我正在查看Web服务软件工厂的源代码作为示例。
如果您没有解决方案,并且从"文件"菜单中点击"新建项目",则可以看到WSSF的"模型项目",在他们的GAT源代码的解决方案文件夹中。即使您正在尝试添加项目,也无法在其GAT源代码中的Projects文件夹中看到任何项目。这让我感到意外。
如果你创建了一个"模型项目"。解决方案,然后点击Add - >解决方案上下文菜单中的新项目,您可以看到"ASMX实施项目"。和"WCF实施项目",它们的GAT源代码中的Projects文件夹中的项目。这是预期的。您无法看到"模型项目"解决方案,这也是预期的。
如果您在"模型项目"中创建一个解决方案文件夹。解决方案并点击添加 - > ITS上下文菜单中的新项目,您不会看到这些项目中的任何一个。这肯定是出乎意料的。此外,您还可以看到"模型项目"。解决方案并且可以将其添加到解决方案文件夹中,这肯定是出乎意料的。
如果您使用"模型项目"以外的任何其他方式创建解决方案。解决方案,你无法从Add中看到这两个项目 - >新项目,但您可以看到"模型项目"并将其添加到解决方案中。
这对我来说都没有任何意义,我想知道是什么控制了这种行为。

我问,因为我有一个多项目模板,我希望能够同时使用两者来创建新解决方案或添加到现有解决方案。
在这一点上,我实际上在我的GAT的解决方案和项目文件夹下面得到了整个多项目结构的类似副本。
对我来说,当我注册我的GAT时,如果我没有解决方案或我正在创建一个新的解决方案,我看到解决方案文件夹中的多项目模板,以及令人惊讶的解决方案文件夹下面的子模板。我从Projects文件夹中看不到任何内容。如果我创建其中任何一个,并尝试在解决方案中添加任何内容,我在所有的指导包中都看不到任何内容。我也没有在任何其他解决方案中看到它。

任何人都有任何指导吗?

I am trying to use project templates with GAT.  I can't seem to determine when a project template will or will not show in Add -> New Project.
I'm looking at the source code for Web Service Software Factory as an example.
If you have no solution, and you hit New Project from the File menu, you can see WSSF's "Model Project", which is in their Solutions folder in their GAT source code.  You can NOT see any of the projects from their Projects folder in their GAT source code, even though you're trying to add a project.  That strikes me as unexpected.
If you create a "Model Project" solution, and then you hit Add -> New Project from the solution context menu, you can see "ASMX Implementation Projects" and "WCF Implementation Projects", which are the projects from their Projects folder in their GAT source code.  That's expected.  You can't see the "Model Project" solution, which is also expected.
If you create a solution folder in the "Model Project" solution and hit Add -> New Project from ITS context menu, you DON'T see either of those projects.  That's unexpected for sure.  Furthermore, you DO see the "Model Project" solution and can add it to the solution folder, and that's definitely unexpected for sure.
If you create a solution any other way other than by using that "Model Project" solution, you can't see the two projects from Add -> New Project, but you can see "Model Project" and add it to the solution.
None of this makes any sense to me, and I'm wondering what controls this behavior.

I ask because I have a multi-project template that I want to be able to use both to create a new solution OR to add to an existing solution. 
At this point I've actually got similar copies of the whole multi-project structure below both the Solutions and the Projects folders in my GAT.
For me, when I register my GAT, if I have no solution or am creating a new solution, I see the multi-project template from the Solutions folder, as well as, surprisingly, the sub-templates below it in the Solutions folder.  I don't see anything from the Projects folder. If I create any of them, and try to add anything to the solution, I don't see anything from my Guidance Package at ALL.  Nor do I see it in any solution I create any other way.

Anyone have any guidance??

推荐答案

你好,


这篇关于是什么决定了项目模板在上下文中是否可用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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