Windows 8 自定义项目模板未显示在Visual Studio 2010中-添加新项目

Windows 8 自定义项目模板未显示在Visual Studio 2010中-添加新项目,windows-8,visual-studio-2012,Windows 8,Visual Studio 2012,我以前在VS2005/2010中创建过ItemTemplates,从未遇到过任何问题 在Windows8上使用VS 2012 Ultimate edition时,我正在创建的ItemTemplate不会显示在“添加新项目”列表中 尝试了这里提到的基本步骤: 已创建新的Windows 8应用商店应用程序(xaml)空白项目。它有一个主页。我在主页上添加了一个文本块,使它看起来与众不同。 然后导出模板 .zip文件已添加到ItemTemplates文件夹和My Exported Templates文

我以前在VS2005/2010中创建过ItemTemplates,从未遇到过任何问题

在Windows8上使用VS 2012 Ultimate edition时,我正在创建的ItemTemplate不会显示在“添加新项目”列表中

尝试了这里提到的基本步骤:

已创建新的Windows 8应用商店应用程序(xaml)空白项目。它有一个主页。我在主页上添加了一个文本块,使它看起来与众不同。 然后导出模板

.zip文件已添加到ItemTemplates文件夹和My Exported Templates文件夹,但不会显示在列表中。我确实重新启动了我的VS好几次,但没有成功


有什么想法吗?我想知道我是否遗漏了一些VS选项?

我不确定这是VS2012中的一个bug还是我遗漏了一些东西,但以下是我如何在“添加新项”菜单中显示我的模板

1:我解压缩了最初创建的模板

2:打开了Visual Studio 2012附带的默认模板

C:\ProgramFiles(x86)\Microsoft Visual Studio 11.0\Common7\IDE\ItemTemplates\CSharp\Windows应用商店\1033\BlankPage

3:比较BlankPage.vstemplate与MyTemplate.vstemplate。使我的模板文件如下所示:

<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Item">
  <TemplateData>
    <DefaultName>CustomStoryPage.xaml</DefaultName>
    <Name>CustomStoryPage</Name>
    <Description>Template for custom storypage</Description>
    <TemplateID>Microsoft.CS.WinRT.CustomStoryPage</TemplateID>
    <TemplateGroupID>WinRT-Managed</TemplateGroupID>
    <ProjectType>CSharp</ProjectType>
    <SortOrder>10</SortOrder>
    <TargetPlatformName>Windows</TargetPlatformName>
    <RequiredPlatformVersion>8</RequiredPlatformVersion>
  </TemplateData>
  <TemplateContent>
    <References />
    <ProjectItem ItemType="Page" SubType="Designer" CustomTool="MSBuild:Compile" TargetFileName="$fileinputname$.xaml" ReplaceParameters="true">StoryPageTemplate.xaml</ProjectItem>
    <ProjectItem SubType="Code" TargetFileName="$fileinputname$.xaml.cs" ReplaceParameters="true">StoryPageTemplate.xaml.cs</ProjectItem>
  </TemplateContent>
</VSTemplate>

CustomStoryPage.xaml
自定义故事页
自定义故事页模板
Microsoft.CS.WinRT.CustomStoryPage
温特管理
CSharp
10
窗户
8.
StoryPageTemplate.xaml
StoryPageTemplate.xaml.cs
4:再次压缩文件夹


上面有些东西可能是不必要的,但现在我已经解决了我的问题。我需要一个接一个地找出需要的项目。

添加
WinRT Managed
行为我解决了这个问题。

我没有ItemTemplates文件夹,知道为什么吗?